Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement