write a java method insertNode which takes two integers int a and int b : Two given classes:

    public class Node { 
     int  data;  
     Node next;  

    Node(int d, Node n){   
     data = d;   
     next = n;       
    } 
     }  

    public class List{  
      Node header;
    } 

write a java method insertNode which takes two integers int a( which is the data of the new node we want to insert) and int b(which is the data of the node that we need to insert a new node before) for the list mylist...

Kindly guide me how to solve this