public class Sample { private static final int MIN_NUMBER = 5; private int number; public int set(double num) { number = (int) num; if (minimumNumber()) { System.out.println("SMALLER"); return number - number; } else { System.out.println("LARGET THAN THE MINIMUM NUMBER!"); return number + 10000; } if ( number == 10000) { System.out.println("SO LARGE"); } return number + 100; } public boolean minimumNumber() { return number <= MIN_NUMBER; } }
having some errors here
why?