public class TestArray2 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextLine()) { Integer integer = Integer.valueOf(scanner.next()); int re = getRe(integer); System.out.println(re); ...