How to show message which abbrevate week start letter to its full name of the day in java?
Basically i've been trying to create a program which when you enter abbreviations for days it pops up with the full name of the day, e.g M = monday, Tu = tuesday and so forth. Sounds simple enough but i've spent couple of hours constantly making changes to the code and have made a little progress being that there is no compiling error. But the current problem i have now is that the show message dialog box is not appearing after i have entered the letter so i was wondering if any of you guys could see where i've gone wrong:
public class DaysOfWeek
public static void main(Stringargs)
String input1 = JOptionPane.showInputDialog("Enter the abbreviation for a day");
String day = (input1);
if (day == "M")
else if (day == "Tu")