问答题 阅读以下程序,给出程序的输出结果。publicclassMyClass {inta[] = { 1, 2, 3, 4, 5 };voidout() {for(intj = 0; j < a.length; j++)System.out.print(a[j] + "");}publicstaticvoidmain(String[] args) {MyClass my = newMyClass();my.out();}} 的答案

成人教育远程网络教育函授网上考试【Java程序设计】课程在线考试模拟试题正确答案解析,免费查看【Java程序设计】作业答案。
题目内容:
阅读以下程序,给出程序的输出结果。public class MyClass {int a[] = { 1, 2, 3, 4, 5 }; void out() {for (int j = 0; j < a.length; j++)System.out.print(a[j] + "");} public static void main(String[] args) {MyClass my = new MyClass();my.out();}}
参考答案价值:100%
已邀请:
参考答案要查看答案请先登录注册

要回复问题请先登录注册