a guest Oct 13th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // traditional method
- ArrayList<String> list = new ArrayList<String>();
- // one-line method
- ArrayList<String> list = new ArrayList<>(Arrays.asList("A","B","C"));
RAW Paste Data