Rose321

Untitled

Jul 1st, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1.  
  2. import javax.swing.JOptionPane;
  3. class Name {
  4.  
  5. public static void main ( String [ ] args)
  6.  
  7. { String Name1 = "" ; String Name2 = "" ; int i = 0 ;
  8. ++i ;
  9. { while ( (!Name1.equals(" ") ) || ( i >=10 ) )
  10. { Name1 = JOptionPane.showInputDialog ("Name" ) ;
  11. Name2 += Name1 ; }
  12. System.out.println( Name2); }
  13. } }
Advertisement
Add Comment
Please, Sign In to add comment