question: public int [ ] readLabels ( ) throws Exception { int labels [ ] = new int [ dataNum ] ; BufferedReader trUsers = new BufferedReader ( new InputStreamReader ( new FileInputStream ( labelFile ) ) ) ; String line = "" ; while ( ( line = trUsers . readLine ( ) ) != null ) { String [ ] strs = line . split ( "\t" ) ; labels [ Integer . valueOf ( strs [ 0 ] ) ] = Integer . valueOf ( strs [ 1 ] ) ; } trUsers . close ( ) ; return labels ; }
target:  Read label from category files of different source