Questions et réponses pour le arrayindexoutofboundsexception :

Récupérez toutes les FAQ sur arrayindexoutofboundsexception

-3
votes
Scanner sc=new Scanner(System.in); int t=sc.nextInt(); //t=1 while(t!=0) { int n = sc.nextInt(); //n=5 int a[] = new int[n]; // a = { 1,2, ...