I tried your code and changed a little the Item's toString() but didn't find what is causing this formatting. The only thing I noticed is that this is happening if the name's length is less than 8....
Type: Posts; User: andreas90
I tried your code and changed a little the Item's toString() but didn't find what is causing this formatting. The only thing I noticed is that this is happening if the name's length is less than 8....
Hello Santroi!
a.remove(i);
a.add(i, a.get(posmax));
You are removing the element in the i-th position of your list and then you try to add in it a.get(posmax). But from your inner for loop,...