#牛客创作赏金赛#题目:键盘输入两个字符串,将这两个字符串进行拼接后输出。
Java代码实现:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String a = in.nextLine();
String b = in.nextLine();
System.out.println(a + b);
}
}
Java代码实现:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String a = in.nextLine();
String b = in.nextLine();
System.out.println(a + b);
}
}
全部评论
相关推荐