import java.util.Scanner;
public class Ward
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String str = input.next();
char ss[] = str.toCharArray(); //利用toCharArray方法转换
for (int i = 0; i < ss.length; i++)
{
System.out.print(ss[i]+"+");
}
}
}
标签:java,Scanner,ss,System,字符串,toCharArray,逐个,String From: https://www.cnblogs.com/2023-3-15/p/17217250.html