public class NumberFormatException { public static void main(String[] args) { String str = "abc"; int num = Integer.parseInt(str); // Conversion d'une chaîne non numérique en entier } }