Java Switch statement

I need help with how to replace the if else statements in this program with a switch statement. Positive response will be appreciated
import java.util.Scanner;
public class Switch {
public static void main(String [] args){
// create new Scanner
Scanner input = new Scanner(System.in);
System.out.println("Enter an integer: ");
int value = input.nextInt();
//executute the if else statements for desired output
if (value % 5 == 0) {
System.out.println("HI FIVE");
}
else if (value % 2 == 0) {
System.out.println("HI EVEN"); }
else { System.out.println("The ineger value you entered is neither even nor odd"); }}}
import java.util.Scanner;
public class Switch {
public static void main(String [] args){
// create new Scanner
Scanner input = new Scanner(System.in);
System.out.println("Enter an integer: ");
int value = input.nextInt();
//executute the if else statements for desired output
if (value % 5 == 0) {
System.out.println("HI FIVE");
}
else if (value % 2 == 0) {
System.out.println("HI EVEN"); }
else { System.out.println("The ineger value you entered is neither even nor odd"); }}}
Comments
int intMonth = 1;
String strMonthName;
switch (intMonth) {
case 1: strMonthName = "Jan";
break;
case 2: strMonthName = "Feb";
break;
(continue all valid cases)
default: strMonthName = "This is not a valid month"; //if it doesn't match any of the above, it will use this
break;
}
I didn't look through the code you posted because it was all slammed together.