Skip to content

Develop#1

Open
andreikuzn wants to merge 4 commits intomainfrom
develop
Open

Develop#1
andreikuzn wants to merge 4 commits intomainfrom
develop

Conversation

@andreikuzn
Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/Main.java Outdated
Comment thread src/Main.java Outdated
array[i] = -array[i];
}
}
for (int num : array) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

у тебя же специальный метод для этого есть!

Copy link
Copy Markdown
Owner Author

@andreikuzn andreikuzn Apr 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поправил методах replaceNegativesWithAbsolute и reverseArray. Принял за основу факт, что формат вывода не важен, т.к. printArray выводит в столбик, а оба метода, в которых я применил данный метод, выводили в строку (теперь также выводят в столбик). В методе createAndPrintDiagonalMatrix метод printArray применить не получится, т.к. для вывода двумерного массива нужно форматирование, которого в printArray нет по-умолчанию.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants