本题提取字符串“China is a great country.”中的前5个字符生成一个新的字符串,并将剩余字符组成另外一个新的字符串,最后将两个新的字符串连接输出。 public class java1 public static void main(String args) String str="China is a great country."; ______; headstr=str

时间:2024-04-25 19:55:43

相似题目