Created
April 18, 2014 16:05
-
-
Save cneud/11051696 to your computer and use it in GitHub Desktop.
Beanshell for csv -> list conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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