Created
July 10, 2019 13:04
-
-
Save mrmemmo/93f90c84251df2004f34cb59ff2e9fe3 to your computer and use it in GitHub Desktop.
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
| String[] lines; | |
| String name = "player"; | |
| String[] kPlayers = {"michael jordan", "kawhi leonard","kevin durant","joel embiid","Kobe Byrant", "LeBron James", "Stephen Curry","Russell Westbrook","James Harden"}; | |
| 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] | |
| // println(s1[1]); | |
| // if(kPlayers[0].equalsIgnoreCase(s1[1]) ){ | |
| // } | |
| }//end of for loop | |
| print(count); | |
| }//end of read function | |
| void mousePressed(){ | |
| read(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment