0

java help

can someone explain why switching the ">" with "<" in x>myArr.length; x++) changes the output?

3rd May 2020, 12:56 AM
vitali
1 Answer
+ 2
The < means that x has to be smaller than myArr.length so it has the range of under it, But if you change it to > than x has to be bigger than myArr.length so it has the range above that
3rd May 2020, 1:31 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar