hello all i tried to fetch data from databse and try to stored it in an array and i want to compare new value that come from database with array if this new value is already stored in this array i like to executed new query if not in array i want add this in array and execute another query
BANK OCC A/C
i am in first for
i am in seconed for
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
** plese tell me what now i do to solve this null pointer exception**
not set the value of name[i] to null.
you are calling he equals method on a non-instantiated variable (null).
I have no idea what you are using that if for anyway. the name array is empty.
what do you think you are comparing?