Skip to content

Instantly share code, notes, and snippets.

@memish
Last active July 9, 2019 01:20
Show Gist options
  • Save memish/22e052594088c9d5207790e10f857696 to your computer and use it in GitHub Desktop.
Save memish/22e052594088c9d5207790e10f857696 to your computer and use it in GitHub Desktop.
String[] lines;
String name = "player";
void setup(){
size(700,400);
read();
}
void draw(){
background(5);
textSize(32);
// text(name + " " + amount, 10, 30);
}
public void read(){
lines = loadStrings("nba.csv");
println("There are " + lines.length + " lines.");
//printArray(lines);
for(int i=0; i<lines.length; i++){//look at each line
String[] s1 = lines[i].split(",");
//players name s1[1]
}//end of for loop
}//end of read function
void mousePressed(){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment