I have the following code:
public static void main (String  args)
jop = new JOptionPane();
s = jop.showInputDialog("Enter your email address");
b = s.matches(".*@.*..*");
System.out.println("Address Appears Valid");
System.out.println("Address is Invalid");
Question: How do I rewrite this main method so is uses as few lines of code as possible, preferably a single line?© BrainMass Inc. brainmass.com October 10, 2019, 7:13 am ad1c9bdddf
public static void main(String args) ...
This solution provides the coding which is required for the computer science question being asked. The solution illustrates how code can be re-written to fit into one line.