【分录题】(10-8)请阅读程序 然后写出程序运行结果。 public class Demo7 { public static void mai
已帮助 人
【分录题】(10-8)请阅读程序,然后写出程序运行结果。 public class Demo7 { public static void main(String args[]) { String tom = "Ihaveagreatdream"; String str; int x, y; x = tom.indexOf("a"); y = tom.indexOf("dream", 2); str = tom.substring(5, 7); System.out.println(x+y+str.length()); } }

回答
共1条回复-
第一空: 借:银行存款 300000 第二空: 贷:实收资本 300000
