What's the problem???
import java.util.*; public class Aaa { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("please enter an enteger: "); int n = input.nextInt(); String day; if (n == 1) { day = "sunday"; } elseif (n == 2); { day = "monday"; } elseif (n == 3); { day = "tuesday"; } elseif (n == 4); { day = "wednesday"; } elseif (n == 5); { day = "thursday"; } elseif (n == 6); { day = "friday"; } elseif (n == 7); { day = "saturday"; } else { day = ""; } if (day != "") { System.out.format("The day #%d in week is %s.\n",n ,day); } else { System.out.println("You have entered an invalid number."); } } }