public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); //int a = nextInt(); //boolean a = nextLine(); System.out.print(a); }
注: Scanner 以空格为分界线决定是不是一行
Scsnner
最新推荐文章于 2021-08-18 11:52:31 发布
public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); //int a = nextInt(); //boolean a = nextLine(); System.out.print(a); }
注: Scanner 以空格为分界线决定是不是一行