com.android.support:support-core-ui:27.1.1
答案 0 :(得分:1)
导入扫描仪,然后创建其对象并使用它来接受用户输入。
import java.util.Scanner;
//Statements of your code
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String obj = sc.nextLine();
//Statements of your code
}