```java Scanner scan = new Scanner(System.in); System.out.println("Enter an Integer"); String num = scan.nextLine(); // I'm just reading the number as a string to save having to convert it int inc = 0; int dec = 0; int lastChar = num.charAt(0); int length = num.length(); for (int i = 1; i < length; i++) { int thisChar = num.charAt(i); if (thisChar >= lastChar) { inc++; } if (thisChar <= lastChar) { dec--; } lastChar = thisChar; } // I put the following in to help me test my idea // System.out.println(inc); // System.out.println(dec); // System.out.println(length); // Test Data // - 13578 // - 973 // - 98657 // - 1111 // - 13421 // - 1829361 // - 13333331 if (inc == -dec) { if (inc + 1 == length) { System.out.println("Not a bouncy number"); } else { System.out.println("Perfectly bouncy number"); } } else if (inc == length - 1) { System.out.println("Increasing number"); } else if (dec == -length + 1) { System.out.println("Decreasing number"); } else { System.out.println("Bouncy number"); } ```