返回列表 發帖
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;


  4. public class Ch100 {
  5.        
  6.        
  7.         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  8.         String str;
  9.         int n;
  10.         Ch100() throws Exception
  11.         {
  12.                 System.out.println("輸入字串 :");
  13.                 str=br.readLine();
  14.                 System.out.println(str);
  15.                 System.out.println("輸入整數 :");
  16.                 n=Integer.parseInt(br.readLine());
  17.                 System.out.println(n);
  18.                
  19.         }

  20.         public static void main(String[] args) throws Exception {
  21.                 new Ch100();
  22.         }

  23. }
複製代碼

TOP

返回列表