{"id":28475558,"url":"https://github.com/stabgan/generic-linked-list-class-from-scratch-in-java","last_synced_at":"2026-07-16T01:32:22.022Z","repository":{"id":54392274,"uuid":"198279443","full_name":"stabgan/Generic-Linked-List-Class-from-Scratch-in-Java","owner":"stabgan","description":"A Generic Custom LinkedList Class in Java","archived":false,"fork":false,"pushed_at":"2026-03-14T12:12:29.000Z","size":187,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-14T23:19:36.942Z","etag":null,"topics":["append","class","custom","delete","generic","java","java8","library","linkedlist","object","oop","oracle","pointers","pop","programming","scratch","without"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stabgan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-22T18:19:42.000Z","updated_at":"2026-03-14T12:12:32.000Z","dependencies_parsed_at":"2022-08-13T14:20:17.679Z","dependency_job_id":null,"html_url":"https://github.com/stabgan/Generic-Linked-List-Class-from-Scratch-in-Java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stabgan/Generic-Linked-List-Class-from-Scratch-in-Java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabgan%2FGeneric-Linked-List-Class-from-Scratch-in-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabgan%2FGeneric-Linked-List-Class-from-Scratch-in-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabgan%2FGeneric-Linked-List-Class-from-Scratch-in-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabgan%2FGeneric-Linked-List-Class-from-Scratch-in-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stabgan","download_url":"https://codeload.github.com/stabgan/Generic-Linked-List-Class-from-Scratch-in-Java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabgan%2FGeneric-Linked-List-Class-from-Scratch-in-Java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35527285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["append","class","custom","delete","generic","java","java8","library","linkedlist","object","oop","oracle","pointers","pop","programming","scratch","without"],"created_at":"2025-06-07T14:06:35.118Z","updated_at":"2026-07-16T01:32:22.017Z","avatar_url":"https://github.com/stabgan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generic Linked List — Java from Scratch\n\nA generic singly-linked list implementation written in pure Java with no external dependencies. Supports any reference type via Java generics.\n\n## What It Does\n\nImplements a classic singly-linked list data structure with the following operations:\n\n| Method | Description |\n|---|---|\n| `append(data)` | Add an element at the end |\n| `insertAtBeginning(data)` | Insert an element at the head |\n| `pop()` | Remove the last element |\n| `delete(index)` | Remove the element at a given 0-based index |\n| `display()` | Print all elements to stdout |\n| `clear()` | Remove all elements |\n| `size()` | Return the number of elements |\n| `isEmpty()` | Check whether the list is empty |\n| `toString()` | Human-readable representation (e.g. `[5 -\u003e 50 -\u003e 55]`) |\n\n## 🛠 Tech Stack\n\n| | Technology | Purpose |\n|---|---|---|\n| ☕ | Java (8+) | Language |\n| 🧬 | Java Generics | Type-safe container for any reference type |\n\n## Getting Started\n\n```bash\n# Compile\njavac LinkedList.java\n\n# Run\njava Main\n```\n\nNo external libraries or build tools required.\n\n## Example Output\n\n```\nAfter appending 5, 50, 55, 505:\n5\n50\n55\n505\n\nAfter appending 100:\n5\n50\n55\n505\n100\n\nAfter pop() and delete(1):\n5\n55\n505\n\nAfter insertAtBeginning(88):\n88\n5\n55\n505\n\ntoString: [88 -\u003e 5 -\u003e 55 -\u003e 505]\n```\n\n## Project Structure\n\n```\n.\n├── LinkedList.java   # Node, LinkedList, and Main classes\n├── output.png        # Sample output screenshot\n└── README.md\n```\n\n## ⚠️ Known Issues\n\n- All classes are in the default package (no `package` declaration) — fine for learning, not for production.\n- `display()` and `pop()` throw exceptions on an empty list rather than returning silently; this is intentional for safety.\n- No `Iterator` implementation — could be added for `for-each` loop support.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstabgan%2Fgeneric-linked-list-class-from-scratch-in-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstabgan%2Fgeneric-linked-list-class-from-scratch-in-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstabgan%2Fgeneric-linked-list-class-from-scratch-in-java/lists"}