两个字符串连接程序
package com.xijiaopractice;
import java.util.Scanner;
public class Test46 {
/*
* 两个字符串连接程序
*/
public static void main(String[] args) {
Scanner scn=new Scanner(System.in);
while(scn.hasNext()){
String str1=scn.nextLine();
String str2=scn.nextLine();
//System.out.println("您输入的第一个字符串是:"+str1);
//System.out.println("您输入的第二个字符串是:"+str2);
//System.out.println("连接后的字符串为:"+str1+str2);
System.out.println(str1+str2);
}
}
}