Skip to content

Instantly share code, notes, and snippets.

@EdGruberman
Created October 23, 2011 17:55
Show Gist options
  • Save EdGruberman/1307643 to your computer and use it in GitHub Desktop.
Save EdGruberman/1307643 to your computer and use it in GitHub Desktop.
getList
List<String> stuff = (List<String>) this.getConfig().getList("nodeName");
for (String entry : stuff)
System.out.println(entry);
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment