1. 将int[]转换为Integer[] 可以使用Stream和boxed方法来实现: importjava.util.Arrays;publicclassMain{publicstaticvoidmain(String[] args){int[] intArray = {1,2,3,4,5}; Integer[] integerArray = Arrays.stream(intArray).boxed().toArray(Integer[]::new); System.out.println(Arrays.toString(int...
1.BigDecimal与int相互转换: 1importjava.math.BigDecimal;2publicclassHelloWorld {3publicstaticvoidmain(String []args) {4//BigDecimal转int5BigDecimal bigCount =newBigDecimal("123");6System.out.println(bigCount);7intcount =bigCount.intValue();8System.out.println(count);9//int转BigDecimal10intcount...