Hello I know that code is not perfect but it works. I try it so meny times and allways all was ok. Who know why it is not correct for codegym validator? My plan: 1. Create table [] 2. Add 10 number for table [] 3. Sort table 1,2,2,.....4,4,4,7,7,.. 4. Find longest sequence 5. Create ArrayList (we must do it) 6. Print number - longest sequence