增强for循环

'''
public class zengqiangfor {

    public static void main(String [] args){

        //创建数组

        int values [] =new int[5];

        for(int i=0;i

        values[i] = (int)(Math.random()*100);

        System.out.println(values[i]);

}

        //排序打印

        int max = 0;

        for(int eatch:values){

            if(max

                max = eatch;

        }

        }

    System.out.println("max:"+max);

     }

}

'''

你可能感兴趣的:(增强for循环)