当前位置: 技术问答>java相关
一道关于数组下标的题,因我的想法与书中答案相愎,故求理由来推翻答案!
来源: 互联网 发布时间:2015-03-17
本文导语: 原题(java2考试学习指南569页) What results from the following fragment of code? int x=1; String[] names={"Fred","Jim","Sheila"}; names[-x] +="."; for(int i=0;i
原题(java2考试学习指南569页)
What results from the following fragment of code?
int x=1;
String[] names={"Fred","Jim","Sheila"};
names[-x] +=".";
for(int i=0;i
What results from the following fragment of code?
int x=1;
String[] names={"Fred","Jim","Sheila"};
names[-x] +=".";
for(int i=0;i