السلام عليكم
يظهر الاستثناء عند الاضافة الى مصفوفة مكونة من Objects وهذا الاوبجيك لديه الطريقة method اضافة insert(String,int,int) 1
public void analysis(){
while(input.hasNext()){
// input instance of Scanner;
line = input.nextLine();
spline = line.split(" ");
Line++;
String me = null;
String Word= null;
int t=0;
for(int i =0;i<spline.length;i++){
me= spline;
char [] de= me.toCharArray();
t=(de.length)-1;
Word = spline;
//من هنا الاستثناء يظهر
rs[t].insert(spline,Line,i);
}
}
الطريقة insert من كلاس اخر
[code] public void insert(String wor,int l,int s){
if(search(wor)){
// method in the same class;
addOccr(wor,l,s);
}else{
// LinkedList in this class;
lls.addFirst(new wordData(wor,l,s));
}
}