Some issue with bufferedReader

Posted by thetna on Stack Overflow See other posts from Stack Overflow or by thetna
Published on 2012-04-03T17:05:45Z Indexed on 2012/04/03 17:30 UTC
Read the original article Hit count: 216

Filed under:
|
|

I have a java function as follows:

 public HashMap<String, ArrayList<Double>> embedWords(BufferedReader buffR1 {              
   ArrayList<String > arrayList = new ArrayList<String>();
   arrayList = getWords(buffR1);
   System.out.println("Word size:"+ arrayList.size());

       ArrayList<ArrayList<Double>> arrList = getWordFeature(buffR1);
   System.out.println("Size of arrList:embedWords:"+arrList.size());
     }

Here , the problem is , the both of the function getWords and getWordFeatures can't give the size value. When i comment function getWords the function getWordFeature returns non-zero value .But when uncommented , the output is as follows:

Word size:15055
Size of arrList:embedWords: 0

© Stack Overflow or respective owner

Related posts about java

Related posts about function