写完才发现原来可以用s1.startsWith(s2),亏我还写了一大堆这玩意a[1].equals("backplane".substring(0, a[1].length())) import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNextLine()) { String s = sc.nextLine().trim(...