【基础整理】刷题常用API-Java

39 阅读1分钟

整型

// 最大最小值
Integer.MAX_VALUE  //(0x7fffffff   2^31 - 1)
Integer.MIN_VALUE  //(0x80000000    -2^31)


//string 转 int
String str = "1";
int i = Integer.parseInt(str)
              

TODO

先占坑