SHARE
TWEET

Untitled

a guest Jul 21st, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. String[] lines;
  2.    
  3.     String name = "player";
  4.     String[] kPlayers = {"michael jordan", "kawhi leonard","kevin durant","joel embiid","Kobe Byrant", "LeBron James", "Stephen Curry","Russell Westbrook","James Harden"};
  5.  
  6.  
  7. void setup(){
  8.   size(700,400);
  9.   read();
  10. }
  11.  
  12. void draw(){
  13.   background(5);
  14.    textSize(32);
  15.   // text(name + " " + amount, 10, 30);
  16. }
  17.  
  18. public void read(){
  19.   lines = loadStrings("nba.csv");
  20.   println("There are " + lines.length + " lines.");
  21.   //printArray(lines);
  22.  
  23.  
  24.         for(int i=0; i<lines.length; i++){//look at each line
  25.             String[] s1 = lines[i].split(",");
  26.             //players name s1[1]
  27.            // println(s1[1]);
  28.             // if(kPlayers[0].equalsIgnoreCase(s1[1]) ){
  29.                
  30.             // }
  31.                
  32.         }//end of for loop
  33.         print(count);
  34.        
  35.        
  36. }//end of read function
  37.  
  38. void mousePressed(){
  39. read();
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top