public class Demo03{ public static void main(String[] args){ System.out.println("int MAX "+Integer.MAX_VALUE); System.out.println("int MIN "+Integer.MIN_VALUE); }}
java整型byte,short,int,long取值范围大小 在项目开发中,需要用到随机数的生成方法,代码如下: public static String randomizeNumber(int number) { Date date = new Date(); long timeMill = date.getTime(); Random rand = new Random(timeMill); return(rand.nextInt(number) + ""); } 如果需要生成8