已采纳回答 / qq_海阔天空_134
String[][] names=new String[2][]; names[0]=new String[2];//new String[2]意思是第一行有2列 names[1]=new String[5]; names[0][1]="lisi";//所以这里的names[0][1]指的就是第一行第二列 你写的names[0][2]是第一行第三列的,但是你只为第一行分配了2列 names[1][4]="wangwu"; System.out.println(names[0][1]); Sys...
2017-04-29
最新回答 / 丶子非鱼
引号里的 相当于一个字符串 比如你要输出:我是大哥 public static void main(String[] args) { // TODO Auto-generated method stub String str="我是大哥"; System.out.println(str); System.out.println("我是大哥"); }就有这两种方式
2017-04-28