View Single Post
  #8 (permalink)  
Old 11-14-2007, 09:51 AM
Phobos0001 Phobos0001 is offline
Member
 
Join Date: Nov 2007
Posts: 20
Phobos0001 is on a distinguished road
ok i think ive finaly got it and all i should need to do now is put this into the main program....

Code:
import javax.swing.*; import java.text.*; import java.io.*; public class phrase { public static void main(String[] args) { String namebox,looped,done; namebox =JOptionPane.showInputDialog("namebox"); // user input for name int len=namebox.length(); while (len !=0) { namebox =JOptionPane.showInputDialog("looped name"); len=namebox.length(); } done =JOptionPane.showInputDialog("after loop"); // user input for name System.exit(0); } }
feel free to correct me, congratulate me, or tell me where to go

thanks again for the help everyone, hopefully i can get this finnished soon
Reply With Quote