- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class C519 {
- BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
- String str;
- int n;
-
- C519() throws IOException
- {
- System.out.print("請輸入一字串:");
- str=br.readLine();
- System.out.println(str);
-
- System.out.print("請輸入一整數:");
- n=Integer.parseInt(br.readLine());
- System.out.println(n);
-
- }
- public static void main(String[] args) throws Exception
- {
- new C519();
- }
- }
複製代碼 |