Question: Help with null pointer exception! 'm trying to finish a program in which i add values to an array list from user input and organize
Help with null pointer exception! 'm trying to finish a program in which i add values to an array list from user input and organize them via comparable, but i keep getting a null pointer exception. Can someone help me?
package fiucs;
/** * * @author **************** */ import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class FIU { static ArrayList I keep getting this error. Help? 
Step by Step Solution
There are 3 Steps involved in it
The NullPointerException is occurring because the static ArrayList Courses declared in the class isnt being initialized before its used in UserMenu To ... View full answer
Get step-by-step solutions from verified subject matter experts
