Skip to content

Commit

Permalink
[INLONG-9102][Agent] Add file utils
Browse files Browse the repository at this point in the history
remove invalid code
  • Loading branch information
justinwwhuang committed Oct 24, 2023
1 parent 09fce27 commit 97cde08
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,7 @@
* Collections.sort(your list, new AlphanumComparator());
*/
public class AlphanumComparator implements Comparator<String> {

/**
* Shows an example of how the comparator works. Feel free to delete this in your own code!
*/
public static void main(String[] args) {
List<String> values = Arrays
.asList("dazzle2", "dazzle10", "dazzle1", "dazzle2.7", "dazzle2.10", "2", "10", "1",
"EctoMorph6", "EctoMorph62", "EctoMorph7");
System.out.println(
values.stream().sorted(new AlphanumComparator()).collect(Collectors.joining(" ")));
}


private boolean isDigit(char ch) {
return ((ch >= 48) && (ch <= 57));
}
Expand Down

0 comments on commit 97cde08

Please sign in to comment.