1]. DSA/1]. Data Structures/06]. Linked List/Java/_03)_Delete_From_Beginning_Of_LinkedList.java
<filename>1]. DSA/1]. Data Structures/06]. Linked List/Java/_03)_Delete_From_Beginning_Of_LinkedList.javaimport java.util.*;
import java.io.*;
import java.lang.*;

class Node{
        int data;
        Node next;
        Node(int x){
            data=x;
            next=null;
        }
    }
  
class Test { 
    
    public static void main(String args[]) 
    { 
        Node head=new Node(10);
    	head.next=new Node(20);
    	head.next.next=new Node(30);
    	printlist(head);
    	head=delHead(head);
	    printlist(head);
    	
    } 
    
    static Node delHead(Node head){
        if(head==null)return null;
        else{
            return head.next;
    }
    }
    public static void printlist(Node head){
        Node curr=head;
        while(curr!=null){
        System.out.print(curr.data+" ");
        curr=curr.next;
    }System.out.println();
    }
} 