发布网友 发布时间:2022-04-20 14:42
共1个回答
热心网友 时间:2024-03-02 07:31
import java.util.Scanner;\x0d\x0a\x0d\x0apublic class TestS {\x0d\x0a\x0d\x0apublic static void main(String[] args) {\x0d\x0aScanner input = new Scanner(System.in);\x0d\x0aSystem.out.println("请输入一串字符a");\x0d\x0aString a = input.next();\x0d\x0aSystem.out.println("请再输入一串字符b");\x0d\x0aString b = input.next();\x0d\x0aSystem.out.println("a和b的连接字符为:"+ a + b);\x0d\x0a}\x0d\x0a\x0d\x0a}热心网友 时间:2024-03-02 07:31
import java.util.Scanner;\x0d\x0a\x0d\x0apublic class TestS {\x0d\x0a\x0d\x0apublic static void main(String[] args) {\x0d\x0aScanner input = new Scanner(System.in);\x0d\x0aSystem.out.println("请输入一串字符a");\x0d\x0aString a = input.next();\x0d\x0aSystem.out.println("请再输入一串字符b");\x0d\x0aString b = input.next();\x0d\x0aSystem.out.println("a和b的连接字符为:"+ a + b);\x0d\x0a}\x0d\x0a\x0d\x0a}