try{
name= JOptionPane.showInputDialog("Enter Employee Name: ");
}
<br />
catch (Exception e){
//wHAT IS THE CODE HERE if THE INPUT IS NUMERIC
JOptionPane.showInputDialog("Invalid Input");
}
lloydsbackyard 0 Light Poster
godzab 0 Junior Poster in Training
lloydsbackyard 0 Light Poster
lloydsbackyard 0 Light Poster
godzab 0 Junior Poster in Training
lloydsbackyard 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.