int operand1 = 0;
int operand2 = 0;
int result = 0;
String firstnumber = "";
String firstnumber_1 = "";
String secondnumber = "";
String lettercheck = "[0-9]+";
String operator = "";
try
{
try
{

firstnumber = JOptionPane.showInputDialog("Please insert First Integer", null);
operand1 = Integer.parseInt(firstnumber);
}
catch(NumberFormatException ex)
{
System.out.print("firstNumber:" + firstnumber);
firstnumber_1 = JOptionPane.showInputDialog("Incorrect entry, Please Re-enter Integer 1", null );
System.out.println("firstNumber_1:" + firstnumber_1);
if(firstnumber_1.contains(lettercheck) == true)
{

System.out.println("got into true if " + firstnumber_1);
}
else
{
System.out.println("got into false " + firstnumber_1);
}

Its a Check to see if the user input contains a letter input, but in the catch it doesn't return true if the user puts all numbers. The System.out.println was just a check to see which path was being taken by the JVM. Any input on how I should go about doing this?