如题,一篇英语文章,倒着按行读取
有什么直接的方法吗?谢谢各位了!!!

解决方案 »

  1.   

    楼上说的有点问题,因为我正的读是用MAP存,然后每读一行会MAP.CLEAR();
    这样做的目的是因为我需要建2维数组,table[i][j];i中存行数,j中存每行单词出现个数
    每读一行后,MAP清空的(这个已经实现了)楼上的这个方法前提需要保留单次全部到数组,然后到着读,这个是可以的
    我现在因为每行以后清空,需要方法到这读才可以(因为是按行进行统计)
      

  2.   

    Sorry, cannot input Chinese.Try use pipelines if you do not want your current program modified,create another program that reverse the file lines using whatever method you want, then use:java Reverse filename | java MyProgram