I am trying to convert a list of college majors to their responding acronyms and I am completely stuck. This is what I have so far. Help would be much appreciated.
import javax.swing.JOptionPane; public class Majors { public static void main(String args[]) { String major = JOptionPane.showInputDialog("Type Your Full Major"); String majorInitial =" "; if (major == "Technical Resource Management") { majorInitial = "TRM"; } JOptionPane.showMessageDialog(null, majorInitial); } }