摘要: Integer.valueOf("str").intValue(); Integer.valueOf("123").intValue(); 阅读全文
posted @ 2020-10-25 11:46 武卡卡 阅读(412) 评论(0) 推荐(0) 编辑
摘要: int a = (int)number.charAt(索引) 阅读全文
posted @ 2020-10-25 11:29 武卡卡 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: int n= 1234; System.out.println(n%10 ); //获取个位 System.out.println((n/10)%10 ); //获取十位 System.out.println((n/100)%10 ); //获取百位 System.out.println((n/10 阅读全文
posted @ 2020-10-25 11:23 武卡卡 阅读(1173) 评论(0) 推荐(0) 编辑