try { long l = Long.parseLong("77889900665544");}catch (NumberFormatException nfe) { System.out.println("keine Zahl");}