Driver's license[code coach] help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Driver's license[code coach] help

This java code clears all samples except one (which is hidden) why ? https://code.sololearn.com/cFsV9h2zebCR/?ref=app

27th Dec 2019, 11:38 AM
Hisham Mohammed
Hisham Mohammed - avatar
1 Answer
+ 2
There is only a little mistake in your logic. Maybe try this: Collections.sort(sorted); int x = sorted.indexOf(name); x = (20*(1+x/aw)); System.out.println(x);
27th Dec 2019, 12:05 PM
Coding Cat
Coding Cat - avatar