dont get it att all. just woth trying add some different places. but why and how it worked did not undesten. readet like 2- 3 books , and many websites. and do not get it. ain this level not explanation befor task. garbage cleaner, how it works. but how works static , and array list. i find array in books and try it but there array list before i undestad it why my task didnt pass i spen couple days. i have idea thas will be the same problems. not exploration. how about robot ? that learneng in codegym, he would did not understand he dont have books. and other robot must tell him on their language.
1 star to this task.
You must be signed in to leave a comment
10 October 2021, 15:14
Important here is the step variable. It needs to be static. As instance variable it will always be a 'new' one after the main method gets called in method4(). Therefore step never becomes > 1 when get checked and the abort condition is never reached (have a look at method2(), here they start using instances)