For this Question: You are given a Doubly linked list and an integer K . Your task is to insert the integer K at the head of the given  linked list<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>insertnew()</b> that takes the head node and the integer K as a parameter.

<b>Constraints:</b>
1 <=N<= 1000
1 <=K, value<= 1000Return the head of the modified linked listSample Input:-
5 2
1 2 3 4 5 

Sample Output:
2 1 2 3 4 5
, I have written this Solution Code: public static Node insertnew(Node head, int k) {
      Node temp = new Node(k); 
      temp.next =  head;
head.prev=temp;
return temp;
      
    }
    , In this Programming Language: Java, Now tell me if this Code is compilable or not?