【分录题】写出下面程序的运行结果(注意大小写 空格和英文符号) public class ABC { public static

大学网课 已帮助 人

【分录题】写出下面程序的运行结果(注意大小写、空格和英文符号) public class ABC { public static void main(String args[]) { AB s = new AB("Hello!", "I love JAVA."); System.out.println(s.toString()); } } class AB { String s1; String s2; public AB(String str1, String str2) { s1 = str1; s2 = str2; } public String toString() { return s1 + s2; } }

【分录题】写出下面程序的运行结果(注意大小写 空格和英文符号) public class ABC { public static

热搜:下面程序的功能是输出数组s中最大元素

回答

共1条回复

  • 15,4,3