Created
July 12, 2021 23:31
-
-
Save kmb385demo/d580f0c47b359eba9b41b6e35293d2ce to your computer and use it in GitHub Desktop.
String Order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> values = new ArrayList<>(List.of("z", "a", "b")); | |
System.out.println(values); //output [z, a, b] | |
Collections.sort(values); | |
System.out.println(values); //output [a, b, z] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment