阅读背景:

使用java.util.Arrays.sort()的NullPointerException

来源:互联网 

This program reads the lines of an input file and stores them into the array words. Then each element in words[] is put into a character array and sorted alphabetically. Each sorted character array is assigned to a string and those strings populate another array sortedWords. I need to sort the elements in the sortedWords array. I get a NullPointerException when I use Arrays.sort(sortedWords).This program reads the lines of an input file a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: