Rose321

Untitled

Jun 28th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import javax.swing.JOptionPane;
  2. class Name {
  3.  
  4. public static void main ( String [ ] args)
  5. { String S1 = "" ; String M ;
  6. do
  7. { M = JOptionPane.showInputDialog ("word" ) ;
  8.  
  9. System.out.println( S1);
  10.  
  11.  
  12. S1 += "\n" + M ;
  13.  
  14.  
  15. }
  16. while ( M != "") ;
  17.  
  18.  
  19.  
  20.  
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment