Skip to content

Conversation

@Sla-als
Copy link
Owner

@Sla-als Sla-als commented Mar 29, 2020

No description provided.


public class ArrayTest {
public void arrMh(String[][] array) throws MyArraySizeException,MyArrayDataException {
if (array.length==4 && array[0].length==4 && array[1].length==4 && array[2].length==4 && array[3].length==4){ // проверка размера массива
Copy link

Choose a reason for hiding this comment

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

Слишком сложно. А если у нас размерность будет 100x100?

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.

3 participants