You can find Longest word in a sentence in java. This is the most famous question of interviewer to find longest word in a sentence, Here i am giving java code to find longest word. In this java example we are using JOptionPane.showInputDialog(“—“), method of javax.swing package to accept input using dialog box. This technique of […]