摘要: int randomNumber=(int)(Math.random()*8)+1; /************************************************************************* > File Name: GuessNumber.java > 阅读全文
posted @ 2016-10-14 23:41 潘探 阅读(167) 评论(0) 推荐(0)
摘要: 1.遍历数组的方法: public static void printfArray(int[] arr) 2. 获取数组中最大值: public static int getMax(int[] arr) public class ArrayTool { //把构造方法私有,外界就不能在创建对象了 / 阅读全文
posted @ 2016-10-14 22:44 潘探 阅读(480) 评论(0) 推荐(0)