class ResultList {
public String name;
public Object value;
public ResultList() {}
}
public class Test {
public static void main(String[] args){
ResultList[] boll = new ResultList[5];
boll[0] = new ResultList(); //assign the ResultList objet to that index
boll[0].name = "iiii";
System.out.println(boll[0].name);
}
}
Till you have created the ResultSet Object but every index is empty that is pointing to null reference that is the reason you are getting null.
So just assign the Object on that index and then set the value.