Files
DEV/DEV2.1/Exception/ex1/NumberFormatException.java

7 lines
212 B
Java
Raw Permalink Normal View History

2024-03-18 14:28:35 +01:00
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
}
}