//Integer.toOctalString(9) Octal (8进制数) 求9的8进制 System.out.println(Integer.toOctalString(9)); //11 //不要拿浮点数来比较 System.out.println(0.1+0.2==0.3); //false //把123转换成字符串 String s=123+""; String s=String.valueOf(123); //如果只有一个参数,则代表起始位置,截取...
import java.math.BigDecimal;public class Test2 { public static void main(String[] args) { String[] arr = {"1","2","3","3"};Integer[] iArr = new Integer[arr.length];for(int i=0;i<arr.length;i++){ iArr[i] = Integer.valueOf(arr[i]);System.out.println("测试打...