Topic: 向各位求助,问题怎么解决! |
Print this page |
1.向各位求助,问题怎么解决! | Copy to clipboard |
Posted by: zxhhero Posted on: 2004-10-05 21:16 我在编译以下这段代码是出了下个问题:问是出了什么问题? import java.io.*; public class SendAdress{ public static void main(String args[ ]){ int aa[]=new int[5]; System.out.println("Before entering mathod:"); for(int i=0;i<5;i++) System.out.println("aa["+i "]="+aa[i]); test(aa); System.out.println("after mathod:"); for(int i=5;i<5;i++) System.out.println("aa["+i "]="+aa[i]); } static void test(int x[]){ System.out.println ("in mathod:"); for(int i=10;i<15;i++){ x[i-10]+=i; System.out.println("x["+(i-10)+"]="+x[i-10]); } } } |
2.Re:向各位求助,问题怎么解决! [Re: zxhhero] | Copy to clipboard |
Posted by: why Posted on: 2004-10-05 22:37 System.out.println("aa["+ i + "]="+aa[i]); 请尽量用准确的文字描述作为标题 |
3.Re:向各位求助,问题怎么解决! [Re: zxhhero] | Copy to clipboard |
Posted by: zxhhero Posted on: 2004-10-06 13:16 感谢楼上的大哥为我指出错误!! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |