80.8k views
5 votes
Consider the following method, which is intended to return the number of strings of length greater than or equal to 3 in an array of String objects.

public static int checkString(String[] arr)

{

int count = 0;

for (int k = 0; k = 3)

{

count++;

}

}

return count;

}

Which of the following code segments compile without error?

1 Answer

3 votes

That’s big brain stuff

User Anas Bakro
by
8.0k points