fork(2) download
  1.  
  2. /* Name of the class has to be "Main" only if the class is public. */
  3. class Ideone
  4. {
  5. public static void main (String[] args) throws java.lang.Exception
  6. {
  7. String x = "1234";
  8. System.out.println(Character.isDigit(x.charAt(0)));
  9. x = "a123";
  10. System.out.println(Character.isDigit(x.charAt(0)));
  11. }
  12. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
true
false