Scanner s =新掃描儀(system . in);
System.out.println("請輸入字符串長度:");
int len 1 = s . nextint();
System.out.println("請輸入壹個字符串:");
string str 1 = s . next line();
int len 2 = s . nextint();