解题思路:
注意事项:
参考代码:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String [] s=new String [6];
String [] a=new String [3];
for (int i = 0; i < s.length; i++) {
s[i]=sc.next();
}
a[0]=s[0]+s[1];a[1]=s[2]+s[3];a[2]=s[4]+s[5];
for (int i = 0; i < a.length; i++) {
if(a[i].length()>100) {
System.out.println("Result String is cutted.");
}
else {
System.out.println(a[i]);
}
}
}
}
0.0分
2 人评分