String myString = "1253"; if(Character.isDigit(myString.charAt(0))){ System.out.println("First character of string is a number"); } else{ System.out.println("First character of string is not a number"); }