title: Java read csv file as matrix
body: <p>I'm new to writing java code as such. I have experience writing code in scripting type languages. I'm trying to rewrite a piece of code I had in python in java.</p>
  
  <p>Python code below -</p>
  
  <pre><code>import pandas as pd
  myFile = 'dataFile'
  df = pd.DataFrame(pd.read_csv(myFile,skiprows=0))
  inData = df.as_matrix()
  </code></pre>
  
  <p>I'm looking for a method in java that is equivalent to <code>as_matrix</code> in python. This function converts the data frame into a matrix.</p>
  
  <p>I did look up for sometime now but can't find a method as such that does the conversion like in python. Is there a 3rd party library or something on those lines I could use? Any direction would help me a lot please. Thank you heaps.</p>