Skip to content

Instantly share code, notes, and snippets.

View fami0110's full-sized avatar
๐Ÿ’€
GET OUT-

Masando Fami fami0110

๐Ÿ’€
GET OUT-
View GitHub Profile
public class LinkedList {
Node head;
public void insert(int data) {
Node newNode = new Node(data);
if (head == null) {
head = newNode;
return;
}