——Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ——-
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
String s1=scan.next();
System.out.println("test.next()得到的字符串:"+s1+"长度:"+s1.length());
String s2=scan.nextLine();
System.out.println("test.nextLine()得到的字符串:&