java 数组

int[ ] score = { 6 , 6 }; //整型数组

double[ ] score = { 6.9 , 6.8 }; //浮点型数组

String[ ] score = { "字符串" , "字符串" }; //字符串数组

 

 

// 定义两行三列的二维数组并赋值
String[ ][ ] names={{"tom","jack","mike"},{"zhangsan","lisi","wangwu"}};

posted @ 2019-07-17 10:22  Alexander.L  阅读(146)  评论(0编辑  收藏  举报