import java.io.*; public class MP2Num13 { public static void main (String Args[]) throws IOException { int abc[15], tot=0, n_count=1; BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); System.out.print("\n"); for(int x=0; x<15; x++) { System.out.print("Index [" + x + "]: "); abc[x]=Integer.parseInt(br.readLine()); } System.out.print("\nNumbers in the even indexes are: \n"); for(int x=0; x<15; x++) { if(abc[x]%2==1) { System.out.print(xx(x) + " "); n_count++; } } System.out.print("\n \nThe total stored in the odd indexes is: "); for(int x=0; x<15; x++) { if(abc[x]%2==0) tot+=abc[x]; } System.out.print(tot + "\n"); } }
-i'm stuck with the error for this part of the code: "abc[15]" and "abc[x]"