摘要:
package Baozhuang; import java.util.Random; public class RandomTest { public static void main(String[] args) { /*Random random = new Random(); int i = random.nextInt(10); ... 阅读全文
摘要:
package Baozhuang; import java.util.Arrays; import java.util.Scanner; public class exe { public static void main(String[] args) { String s = "27O51I51022I8"; s = s.replace('O', ... 阅读全文
摘要:
package Baozhuang; public class MathTest { public static void main(String[] args) { int m = 4; int n = 2; int max = Math.max(m, n); System.out.println(max);//最大值 ... 阅读全文
摘要:
package Baozhuang; public class IntegerTest { public static void main(String[] args) { /*装箱:把基本数据类型转化为对应的对象数据类型 好处:1.在需要使用对象数据类型的时候,转换成对应的对象类型(集合里面) 2.转换完成以后,拥有相... 阅读全文