import javaxswing*; import javalang*; public class Wanyear { public static void main(String[] args) { String input=JOptionPaneshowInputDialog (Please Enter the year) int year=IntegerparseInt(input) String input=JOptionPaneshowInputDialog (Please Enter the Month) int m=IntegerparseInt(input) String input=JOptionPaneshowInputDialog (Please Enter the Day) int d=IntegerparseInt(input) String Nyear=IntegertoString(year) String Sc=Nyearsubstring() String Sy=Nyearsubstring() int c=IntegerparseInt(Sc) int y=IntegerparseInt(Sy) if(m<){ year; m+=;} else c; int w=(c/)(*c)+y+(y/)+(*(m+)/)+d; int result=; if(w>=) result=w%; else result=(w+)%; switch(result) { case : Systemoutprintln(SUN) break; case : Systemoutprintln(MON) break; case : Systemoutprintln(TUE) break; case : Systemoutprintln(WED) break; case : Systemoutprintln(THU) break; case : Systemoutprintln(FRI) break; case : Systemoutprintln(SAT) break; } } } |