ok i think ive finaly got it and all i should need to do now is put this into the main program....
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