Skip to content

Instantly share code, notes, and snippets.

@cneud
Created April 18, 2014 16:05
Show Gist options
  • Save cneud/11051696 to your computer and use it in GitHub Desktop.
Save cneud/11051696 to your computer and use it in GitHub Desktop.
Beanshell for csv -> list conversion
List leftList = new ArrayList();
List rightList = new ArrayList();
String[] lines = csv.split("\n");
for(line : lines) {
String[] urls = line.split("\"");
leftList.add(urls[1]);
rightList.add(urls[3]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment