This question is regarding Java. Why do we need JOptionPane class to print messages in a separate window when I can simply write the messages using System.out.println and take user input via scanner class?
I am a beginner and while programming I could not find any significant use of the class JOptionpane as the messages could otherwise also be printed via S.o.p. Pls tell why is it important to have the class JOptionpane to print messages and take user input.