8 lines
216 B
Java
8 lines
216 B
Java
public class ArrayIndexOutOfBoundsExample {
|
|
public static void main(String[] args) {
|
|
int[] array = new int[5];
|
|
System.out.println(array[10]); // Tentative d'accès à un index inexistant
|
|
}
|
|
}
|
|
|