import java.util.ArrayList;
public class Jnext_Demo {
public static void main(String[] args) {
ArrayList
data= null;
//now ADD data in array list 1 string insert in array list
data.add("java"); // 0 index
}
}
check screen short.
Null pointer Exception Solution
contace me :ghorivipul97@gmail.com
No comments:
Post a Comment