SHARE
TWEET

Untitled

a guest Jul 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. String[] lines;
  2.    
  3.     String name = "player";
  4.  
  5.  
  6. void setup(){
  7.   size(700,400);
  8.   read();
  9. }
  10.  
  11. void draw(){
  12.   background(5);
  13.    textSize(32);
  14.   // text(name + " " + amount, 10, 30);
  15. }
  16.  
  17. public void read(){
  18.   lines = loadStrings("nba.csv");
  19.   println("There are " + lines.length + " lines.");
  20.   //printArray(lines);
  21.  
  22.  
  23.         for(int i=0; i<lines.length; i++){//look at each line
  24.             String[] s1 = lines[i].split(",");
  25.             //players name s1[1]
  26.    
  27.                
  28.         }//end of for loop
  29.        
  30.        
  31.        
  32. }//end of read function
  33.  
  34. void mousePressed(){
  35.  
  36. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top