Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // More efficient - 894 ns
- List<String> list = new ArrayList<>();
- for (String s : rawArgs) {
- list.add(s);
- }
- // Than this - 1340 ns
- List<String> list = new ArrayList<>();
- list.addAll(Arrays.asList(rawArgs));
Advertisement
Add Comment
Please, Sign In to add comment