系統版本:windows7
java輸入語句
int n = Integer.parseInt(args[0])
使用時需要導包import java.util.Scanner;
首先定義Scanner物件
Scanner sc = new Scanner(System.in);
如果要輸入整數,則 int n = sc.nextInt();
String型別的,則String temp = sc.next();