{"id":21846733,"url":"https://github.com/imsaiful/shilpa","last_synced_at":"2025-10-08T06:43:12.770Z","repository":{"id":111515780,"uuid":"110368770","full_name":"imsaiful/shilpa","owner":"imsaiful","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-11T21:35:39.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-21T16:59:04.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/imsaiful.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}},"created_at":"2017-11-11T18:15:22.000Z","updated_at":"2017-11-11T18:16:46.000Z","dependencies_parsed_at":"2023-06-01T19:45:36.092Z","dependency_job_id":null,"html_url":"https://github.com/imsaiful/shilpa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imsaiful/shilpa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsaiful%2Fshilpa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsaiful%2Fshilpa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsaiful%2Fshilpa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsaiful%2Fshilpa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imsaiful","download_url":"https://codeload.github.com/imsaiful/shilpa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsaiful%2Fshilpa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278903017,"owners_count":26065786,"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-10-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2024-11-27T23:15:03.734Z","updated_at":"2025-10-08T06:43:12.764Z","avatar_url":"https://github.com/imsaiful.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shilpa\nMenu driven for the TreeSet\n```\nimport java.util.*;\nclass Shilpa\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner in=new Scanner(System.in);\n\t\tTreeSet\u003cInteger\u003e ts = new TreeSet\u003cInteger\u003e();\n\t\tSystem.out.println(\"Enter the initial Capacity of TreeSet\");\n\t\tint n=in.nextInt();\n\t\tfor(int i=1;i\u003c=n;i++)\n\t\t{\n\t\t\tSystem.out.println(\"Enter the \"+i+\" element \");\n\t\t\tint x=in.nextInt();\t\t\t\n\t\t\tts.add(x);\n\t\t\t\n\t\t}\n\t\tboolean condition=true;\n\t\twhile(condition)\n\t\t{\n\t\t\tSystem.out.println(\"Enter your choise\");\n\t\tSystem.out.println(\"1. View Elements \\n2. Insert Element\\n3. Delete Elements\\n4. Search Element\\n5. Exit\");\n\t\tint c=in.nextInt();\n\t\tif(c==1)\n\t\t{\n\t\t\t Iterator\u003cInteger\u003e itr=ts.iterator();  \n  \t\t\t while(itr.hasNext()){  \n   \t\t\t System.out.print(itr.next()+\" \");\n   \t\t\t }  \n\t\t}\n\t\telse if(c==2)\n\t\t{\n\t\t\tSystem.out.println(\"Enter the element\");\n\t\t\tint x=in.nextInt();\n\t\t\tts.add(x);\n\t\t\tSystem.out.println(\"Element is inserted Successfully\");\n\t\t}\n\t\telse if(c==3)\n\t\t{\n\t\t\tSystem.out.println(\"Enter the element to delete\");\n\t\t\tint x=in.nextInt();\n\t\t\tif(ts.remove(x))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Element deleted\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Element not exist\");\n\t\t\t}\n\n\t\t}\n\t\telse if(c==4)\n\t\t{\n\t\t\tSystem.out.println(\"Enter the element to search\");\n\t\t\tint x=in.nextInt();\n\t\t\tint y=ts.headSet(x).size()+1;\n\t\t\tif(y\u003c=ts.size())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Elements found at position \"+y);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Elements not found\");\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(c==5)\n\t\t{\n\t\t\tSystem.exit(0);\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Please enter the correct option\");\n\t\t}\n\n\n\t\t}\n\t\t\n\t\n}\n}\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsaiful%2Fshilpa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimsaiful%2Fshilpa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsaiful%2Fshilpa/lists"}