扫描器s =新的扫描器(System.in);
String w; System.out.print("here : "); w = s.nextLine(); System.out.println("here1 : " + w);
输出:
user input here : here1 : user input
预期输出:
here : user input here1 : user input
hwamh0ep1#
Scanner s = new Scanner(System.in); string w = s.nextString(); System.out.println("here : " + w); string x = s.nextString(); System.out.println("here1 : " + x);
1条答案
按热度按时间hwamh0ep1#