package p20190916; import java.util.Scanner; public class TestNumber { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Enter the value of a"); int a = scanner.nextInt(); System.out.println("Enter the value of b"); int b = scanner.nextInt(); System.out.println("Enter the value of c"); int c = scanner.nextInt(); System.out.println("Enter the value of d"); int d = scanner.nextInt(); boolean even = NumberFinder.isEven(a); boolean palendrome = NumberFinder.isPalindrome(b); boolean armstrong = NumberFinder.isArmstrong(c); boolean strong = NumberFinder.isStrong(d); if (even) { System.out.println("the number is even\n" + a); } else { System.out.println("the number is odd\n" + a); } if (palendrome) { System.out.println("the number is palendrome\n" + b); } else { System.out.println("the number is not palendrome\n" + b); } if (armstrong) { System.out.println("the number is armstrong\n" + c); } else { System.out.println("the number is not armstrong\n" + c); } if (strong) { System.out.println("the number is strong\n" + d); } else { System.out.println("the number is not strong\n" + d); } } }