---
title: "How create LinkedList in C#?"  
description: "How create LinkedList in C#?"  
author: "Mukul Goenka"  
published: 2022-11-02  
canonical: https://answers.mindstick.com/qa/98638/how-create-linkedlist-in-c-sharp  
category: "programming"  
tags: [".net programming", "c#"]  
reading_time: 1 minute  

---

# How create LinkedList in C#?

I want to create [linked](https://answers.mindstick.com/qa/104773/how-to-create-a-linked-list) list in .NET [programming](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming)

## Answers

### Answer by Sandra Emily

**I write down code in Java language.**

```java
// Linked list implementation in Java

class LinkedList {
  // Creating a node
  Node head;

  static class Node {
    int value;
    Node next;

    Node(int d) {
      value = d;
      next = null;
    }
  }

  public static void main(String[] args) {
    LinkedList linkedList = new LinkedList();

    // Assign value values
    linkedList.head = new Node(1);
    Node second = new Node(2);
    Node third = new Node(3);

    // Connect nodess
    linkedList.head.next = second;
    second.next = third;

    // printing node-value
    while (linkedList.head != null) {
      System.out.print(linkedList.head.value + ' ');
      linkedList.head = linkedList.head.next;
    }
  }
}
```


---

Original Source: https://answers.mindstick.com/qa/98638/how-create-linkedlist-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
