Iterator.next() возвращает одно и тоже значение
Список cards состоит из разных значений, но iter.next() возвращает значение из конца списка. Пробовали с помощью cards.get(n), но проблема та же. public void update(List<Card> cards, String[] players, short[] playersCardsCount, boolean isPortal) { String resOut = " Карты Игроки\n"; short cardsSize = (short) cards.size(); short playersSize = (short) players.length; short maxSize; if (cardsSize < playersSize) maxSize = playersSize; else maxSize = cardsSize; Iterator<Card> iter = cards.iterator(); for (short n = 0; n < maxSize; n++) if (cardsSize > n && playersSize > n) { Card card = iter.next(); resOut += makeCard(n, card.color, card.numberNormal, isPortal) + spaceCardPlayer + makePlayer(n, players[n], playersCardsCount[n]) + "\n"; } else if (cardsSize > n) { Card card = iter.next(); resOut += makeCard(n, card.color, card.numberNormal, isPortal) + "\n"; } else resOut += spaceVoidPlayer + makePlayer(n, players[n], playersCardsCount[n]) + "\n"; clear(resOut); }