7 lines
212 B
Java
7 lines
212 B
Java
|
|
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
|
||
|
|
}
|
||
|
|
}
|