не понимаю в чём проблема, вроде вывод верный пробовал и с пробелами и без пробелов
package com.javarush.task.pro.task05.task0523;
/*
Охота на Кибердракона
*/
public class Solution {
public static int[] coordinates = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
public static void main(String[] args) {
int sumx = 0;
int sumy = 0;
for (int el : coordinates) {
if (el % 2 != 0) {
sumx += el;
} else {
sumy += el;
}
}
System.out.println(sumx + "; " + sumy);
}
}