public class test {


public static void main(String[] args) {

 

       float[][] indat = new float[2][2];

        

       try {

           // csv 데이타 파일

           File csv = new File("d:\\test.csv");

           BufferedReader br = new BufferedReader(new FileReader(csv));

           String line = "";

           int row =0 ,i;

 

           while ((line = br.readLine()) != null) {

               // -1 옵션은 마지막 "," 이후 빈 공백도 읽기 위한 옵션

            String[] token = line.split(",", -1);

               for(i=0;i<2;i++) indat[row][i] = Float.parseFloat(token[i]);

               row++;

                

           }

           br.close();

 

       } 

       catch (FileNotFoundException e) {

           e.printStackTrace();

       } 

       catch (IOException e) {

           e.printStackTrace();

       }

   }       

}


이렇게 실행하면 메모리에 배열값은 저장되는거같은데..............................


됐는지안됐는지는 어떻게 확인해??


System.out.println(); 뭐라고써야될지모르겠떠 ㅠㅠㅠㅠㅠ알려주세여ㅠㅠㅠㅠㅠㅠㅠㅠ