Write a main method that will request the user to enter Strings using a JOptionPane input dialog.
The method should continue accepting strings until the user types "STOP". For each string
entered, tell the user via a JOptionPane message dialog if the String had an odd or even length.
After the user enters STOP, tell the user via a JOptionPane how many strings had an odd length
and how many had an even length.

Write a main method that will request the user to enter Stri.pdf

  • 1.
    Write a mainmethod that will request the user to enter Strings using a JOptionPane input dialog. The method should continue accepting strings until the user types "STOP". For each string entered, tell the user via a JOptionPane message dialog if the String had an odd or even length. After the user enters STOP, tell the user via a JOptionPane how many strings had an odd length and how many had an even length.