这种错误该怎么改呢?

来源:6-1 什么是数组

慕粉3932450

2016-09-11 12:36

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

写回答 关注

5回答

  • JustWannaHugU
    2016-09-11 13:03:28
    已采纳

    同学改成这样

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

    慕粉3932...

    非常感谢!

    2016-09-11 16:13:16

    共 2 条回复 >

  • qq_何為真何為假天知道_0
    2017-04-27 20:14:49

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

  • 慕少7079374
    2016-09-21 20:23:32

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

  • qq_光环_O
    2016-09-11 13:26:03

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

  • 牙坠月3546732
    2016-09-11 13:09:11

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

Java入门第一季(IDEA工具)升级版

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

1165172 学习 · 17581 问题

查看课程

相似问题