1.Integer转换成int的方法
1 | Integer i; |
2.int转换成Integer
1 | int i; |
3.String转换成int的方法
1 | String str = "10"; |
4.int转换成String
1 | int i; |
5.String转换成Integer
1 | String str = "10" |
6.Integer转换成String
1 | Integer it; |
7.String转换成BigDecimal
1 | BigDecimal bd = new BigDecimal(str); |