public static void main(String args[]) { Scanner sc = new Scanner(System.in); String st = sc.nextLine(); String[] str = st.split(";"); int n = str.length; int sum = 0; for (int i = 0; i < n; i++) { String[] str1 = str[i].split(":"); // 以下删除空格部分 St...
7-4sdut-String-5图书价格汇总(II)(10分)点击查看代码 难点:处理空格 代码:import java.util.Scanner;public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in);String st = sc.nextLine();String[] str = st.split(";");int n = str.length;int ...