Java Program to Check Evil Number

Java program to check Evil number package IncludeHelp; import java.util.Scanner; public class CheckEvilNumber { // Function to convert a number to Binary String toBinary(int n) { // declare here. int…

0 Comments

Java Program to Handle Multiple Exceptions

Java program to handle multiple exceptions package ExceptionHandling; import java.util.Scanner; import java.util.InputMismatchException; class ExMultipleCatchBlock { public static void main(String arg[]) { try { // create object of scanner class. Scanner…

0 Comments

Java Program to Check Harshad Number

Java program to check Harshad Number package IncludeHelp; import java.util.Scanner; public class CheckHarshadNumber { public static void main(String args[]) { // create object of the class. Scanner sc = new…

0 Comments