建议28: 优先使用整型池 看如下代码: public class Client { public static void main(String[] args) { Scanner input = new Scanner(System.in); while (input.hasNextInt()) { int ii = input.nextInt(); System.out.println("\n====" + ii + " 的相等判断======"); // 两…
先看一段代码: package com.test; import java.util.Scanner; public class IntegerCache { public static void main(String[] args) { Scanner input = new Scanner(System.in); while(input.hasNextInt()){ int ii = input.nextInt(); System.out.println("===" + ii +…