please help me, how can i solve taht nullpointer exception problem?
or i can't do so :
import java.util.*;
import java.io.*;
public class push{
public static void main(String args[])throws IOException{
Stack ma[]=new Stack[5];
int anothe[]={1,22,3,16,1};
String sk[]={"hi","it's","me","not","you"};
int i;
for (i=0; i<6; i++) {
try{
ma[i].add(sk[i]);
} catch(RuntimeException e) {
System.out.print(e+" "+i);
}
}
for (i=0; i<24; i++) System.out.println(ma[i].pop());
}
}