package Sample;
public class Sam {
public static void main(String[] args) {
R obj[] = new R[100];
obj[0].current=0;
}
}
public class R {
int current;
}
when executing this code i am getting null pointer exception.
while debugging at "obj[0].current=0 " it shows as malformed expression error.
please correct me........