{"id":28500664,"url":"https://github.com/shounlak/treeset-java","last_synced_at":"2025-10-08T15:05:17.475Z","repository":{"id":297887878,"uuid":"998202292","full_name":"ShouNLAK/TreeSet-Java","owner":"ShouNLAK","description":"Learning TreeSet in Java","archived":false,"fork":false,"pushed_at":"2025-06-08T05:14:08.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T13:07:08.922Z","etag":null,"topics":["huit","java","treeset"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShouNLAK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-08T04:52:46.000Z","updated_at":"2025-06-08T05:19:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e757337-fe48-4aef-ac9a-286981393f75","html_url":"https://github.com/ShouNLAK/TreeSet-Java","commit_stats":null,"previous_names":["shounlak/treeset-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShouNLAK/TreeSet-Java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShouNLAK%2FTreeSet-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShouNLAK%2FTreeSet-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShouNLAK%2FTreeSet-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShouNLAK%2FTreeSet-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShouNLAK","download_url":"https://codeload.github.com/ShouNLAK/TreeSet-Java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShouNLAK%2FTreeSet-Java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267535698,"owners_count":24103362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["huit","java","treeset"],"created_at":"2025-06-08T15:07:29.761Z","updated_at":"2025-10-08T15:05:12.169Z","avatar_url":"https://github.com/ShouNLAK.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning TreeSet in Java\n\nA Java program demonstrating various operations on `TreeSet`, including sorting, searching, statistics, and manipulation using different data sources.\n\n---\n\n## 📌 Table of Contents\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [How to Run](#how-to-run)\n- [Example Output](#example-output)\n- [Contributors](#contributors)\n- [License](#license)\n\n---\n\n## 🚀 Features\n\n- **Default Ordering TreeSet**: Stores elements in ascending order.\n- **Comparator-based TreeSet**: Stores elements in descending order using a custom comparator.\n- **TreeSet from User Input**: Allows users to enter values via the keyboard.\n- **Randomized TreeSet**: Generates random values and stores them.\n- **TreeSet from an Array**: Converts an array into a `TreeSet` to remove duplicates.\n- **TreeSet from a File**: Reads values from `input.txt` and stores them.\n- **Search Operations**: Allows searching for elements in the TreeSet.\n- **Deletion Operations**: Enables removing elements from the TreeSet.\n- **Statistics on TreeSet**: Provides insights such as the smallest/largest elements and subsets.\n- **Conversion to Array**: Transforms `TreeSet` into an array.\n- **Clearing Elements**: Removes all elements from the TreeSet.\n\n## 🛠 Prerequisites\n\n- Java Development Kit (JDK) installed\n- An `input.txt` file (if using file-based input)\n\n## ⚡ How to Run\n\n1. Clone this repository:\n   ```sh\n   git clone https://github.com/ShouNLAK/Learning_TreeSet.git\n   ```\n2. Compile the Java program:\n   ```sh\n   javac Learning_TreeSet.java\n   ```\n3. Run the program:\n   ```sh\n   java Learning_TreeSet\n   ```\n\n## 📸 Example Output\n\n```sh\nTreeSet [1, 3, 4, 5, 8]\nTreeSet with Comparator [8, 5, 4, 3, 1]\nNumber of elements:\nPlease input value of the elements #1: 23\nTreeSet from keyboard input: [23]\nElements #1 randomized: 67\nTreeSet from Random: [67]\n...\n```\n\n## 👥 Contributors\n\n- [ShouNLAK](https://github.com/ShouNLAK)\n- Open to contributions! Feel free to fork, submit PRs, or suggest improvements.\n\n## 📜 License\n\nThis project is open-source. Feel free to use and modify it as needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshounlak%2Ftreeset-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshounlak%2Ftreeset-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshounlak%2Ftreeset-java/lists"}