Подскажите пожалуйста, что не так ?
Заранее благодарю.
package com.javarush.task.pro.task05.task0502;
/*
Четные и нечетные ячейки массива
*/
public class Solution {
public static final String ODD = "Нечётный";
public static final String EVEN = "Чётный";
public static String[] strings = new String[5];
public static void main(String[] args) {
String[] strings = new String[5];
for (int index = 0;index<5;index++)
if (index%2==0)
strings[index]=EVEN;
else
strings[index]=ODD;
//напишите тут ваш код
System.out.print("index = 0");
System.out.println(" value = " + strings[0]);
System.out.print("index = 1");
System.out.println(" value = " + strings[1]);
System.out.print("index = 2");
System.out.println(" value = " + strings[2]);
System.out.print("index = 3");
System.out.println(" value = " + strings[3]);
System.out.print("index = 4");
System.out.println(" value = " + strings[4]);
}
}