📜  输入与字符串连接 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:26.145000             🧑  作者: Mango

代码示例1
String s = "Vivek";
    Scanner scan = new Scanner(System.in);
    String s1 = scan.next();
    String sResult = s + s1;
    System.out.println(sResult);