With this code I am getting a NullPointerException at lines 148 , 184, and 198

Also I am also not even sure I am doing the coding right for checking nodes and adding them into a linked list...