Java数组部分实例(Array).docVIP

  • 0
  • 0
  • 约2.87千字
  • 约 6页
  • 2018-07-31 发布于江苏
  • 举报
public class Array{ public static void main(String[] args) { //(1)求数组长度 //int score[] = new int[3]; //System.out.println(数组长度为 + score.length); // int score[] = {91,92,93,94,95,96}; // for (int x = 0; x score.length; x++) { // System.out.println(score[ + x +] = + score[x]); // } //(2)找出最高分和最低分 // int score[] = {68,89,75,94,100,69,90}; // int max = 0; // int min = 0; // max = min = score[0]; // // for (int x = 0; x score.length; x++) { // if(score[x] max) { // max = score[x]; // } // //

文档评论(0)

1亿VIP精品文档

相关文档