hey here is what i got.... i get an error after my while statement that i need a ; after my while but that dosent make any since, cause there shouldnt be any ideas???? suppose to be an easy loop statement if the string does not contain @ then keep prompting the user until there is an @ in the string.
* Week_seven_number_twenty_six application
*
* @author
* @version 1.00 2012/3/14
*/
import javax.swing.JOptionPane;
public class Week_seven_number_twenty_six
{
public static void main(String[] args)
{
do
{
String INPUT = JOptionPane.showInputDialog(null,"Please input what ever you like as long as it contains the '@' symbol");
}
while(INPUT.contains("@"))
{
System.out.println(""+INPUT);
}
}
}