为了账号安全,请及时绑定邮箱和手机立即绑定

这种错误该怎么改呢?

String a[]=new String[]{32,54,q,d,E,R,21,22,23,14};

正在回答

5 回答

同学改成这样

 String a[]={"32","54","q","d","E","R","21","22","23","14"};

0 回复 有任何疑惑可以回复我~
#1

JustWannaHugU

或者这样:String a[] = new String[]{"32","54","q","d","E","R","21","22","23","14"};
2016-09-11 回复 有任何疑惑可以回复我~
#2

慕粉3932450 提问者

非常感谢!
2016-09-11 回复 有任何疑惑可以回复我~

数组是相同类型的集合,定义string 里面存放的数据都是string 类型的

0 回复 有任何疑惑可以回复我~

String a[]=new String[]{"32","54","q","d","R","21","22","23","14"};

0 回复 有任何疑惑可以回复我~

String a[]=new String[]{"32","54","q","d","E","R","21","22","23","14"};

0 回复 有任何疑惑可以回复我~

 String a[]={"32","54","q","d","E","R","21","22","23","14"};

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Java入门第一季(IDEA工具)升级版
  • 参与学习       1165462    人
  • 解答问题       17585    个

0基础萌新入门第一课,从Java环境搭建、工具使用、基础语法开始

进入课程

这种错误该怎么改呢?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信