SyntaxFix
Write A Post
Hire A Developer
Questions
Collections.sort(teamsName.subList(1, teamsName.size()));
The code above will reflect the actual sublist of your original list sorted.