0
for loop and while(true), which is better ?
I have a search method and there are two way to implement it one is for loop and one is while(true), both are terminate and throw IndexOutOfException. Therefore, what is better ?
2 Réponses
0
this exception is not depend of ( for vs while.) choice. for is preferable if you need counter
0
It is a exercise in exception topic