Here is my if-else statement:
public static void main(String[] args) { Scanner input = new Scanner (System.in); int number; System.out.println("Enter Integer: "); number = input.nextInt(); if (number % 7 == 0) { System.out.println(number + " is divisible by 7"); } else { System.out.println(number + " isn't divisible by 7"); } }