import java.util.Scanner;
public class TestS {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("请输入一串字符a");
String a = input.next();
System.out.println("请再输入一串字符b");
String b = input.next();
System.out.println("a和b的连接字符为:"+ a + b);
}
}
温馨提示:答案为网友推荐,仅供参考