Anybody able to help me?  I can't get out of a while loop! It works, it just will not stop!
public class getNames
{
public static void main( String args[] )
{
String message = "Employee's Name Is" ; //set String Name
String aPrompt = "Enter Employee's Name:";
String tmp = "";
String name = JOptionPane.sho wInputDialog( aPrompt );
	
		
while
( name != null ){
if ( name != null)
JOptionPane.sho wInputDialog( "Enter Employee's Name" );
else
JOptionPane.sho wMessageDialog( null, name ) ;
}
		
				
//display the message to welcome the user by name
JOptionPane.sho wMessageDialog( null, name );
} // end main
					public class getNames
{
public static void main( String args[] )
{
String message = "Employee's Name Is" ; //set String Name
String aPrompt = "Enter Employee's Name:";
String tmp = "";
String name = JOptionPane.sho wInputDialog( aPrompt );
while
( name != null ){
if ( name != null)
JOptionPane.sho wInputDialog( "Enter Employee's Name" );
else
JOptionPane.sho wMessageDialog( null, name ) ;
}
//display the message to welcome the user by name
JOptionPane.sho wMessageDialog( null, name );
} // end main
Comment