List<String> stooges = Arrays.asList("Larry", "Moe", "Curly");Without the Arrays class you should use the old boring construct:
List<String> stooges = new ArrayList<String>The former is much better!
stooges.add("Larry");
stooges.add("Moe")
stooges.add("Curly");
No comments:
Post a Comment