Three letter acronyms are common in the business world. For example, in Java you use the IDE (Integrated Development Environment) in the JDK (Java Development Kit) to write programs used by the JVM (Java Virtual Machine) that you might send over a LAN (local area network). Programmers even use the acronym TLA to stand for three-letter acronym. Write a program that allows a user to enter three words, and display the appropriate three-letter acronym in all uppercase letters. If the user enters more than three words, ignore the extra words. Figure 7-22 shows a typical execution. Save the file as ThreeLetterAcronym.java. Solution import javax.swing.JOptionPane; import java.lang.*; public class ThreeLetterAcronym { public static void main(String[] args) { String name; String oneLtr = \"\"; String twoLtr = \"\"; String threeLtr = \"\"; String saveOriginalWord; int stringLength; int i; char c; name = JOptionPane.showInputDialog(null,\"Please enter three words\"); saveOriginalWord = name; stringLength = name.length(); oneLtr = name.charAt(0); for (i=0;i<stringLength;i++) { int a = 1; c = name.charAt(i); if(Character.isWhiteSpace(c)) if (a <= 1) twoLtr = name.charAt(c+1); else if (a <= 2)threeLtr = (c+2); name = oneLtr+twoLtr+threLtr; } JOptionPane.showMessageDialog(null, \"Original phrase was \" + saveOriginalWord + \"\ Three letter Acronym is \" + name); } } .