{"id":24332463,"url":"https://github.com/mtgsoftworks/math-algorithm","last_synced_at":"2025-12-16T09:51:24.486Z","repository":{"id":199277417,"uuid":"702528974","full_name":"mtgsoftworks/math-algorithm","owner":"mtgsoftworks","description":"The code generates two lists of 30 random integers each, combines them into a third list, reverses the order, and then sorts the combined list before printing the result.","archived":false,"fork":false,"pushed_at":"2024-11-04T21:54:04.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T12:36:06.526Z","etag":null,"topics":["arraylist","console-application","data-structures","java-8","sorting-algorithms"],"latest_commit_sha":null,"homepage":"","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/mtgsoftworks.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-09T13:44:13.000Z","updated_at":"2024-11-04T21:55:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e27f27c-4be7-41b7-b766-1cad328cba6d","html_url":"https://github.com/mtgsoftworks/math-algorithm","commit_stats":null,"previous_names":["mtgsoftworks/math-algorithm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtgsoftworks/math-algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgsoftworks%2Fmath-algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgsoftworks%2Fmath-algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgsoftworks%2Fmath-algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgsoftworks%2Fmath-algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtgsoftworks","download_url":"https://codeload.github.com/mtgsoftworks/math-algorithm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtgsoftworks%2Fmath-algorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27762475,"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-12-16T02:00:10.477Z","response_time":57,"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":["arraylist","console-application","data-structures","java-8","sorting-algorithms"],"created_at":"2025-01-18T02:19:33.725Z","updated_at":"2025-12-16T09:51:24.465Z","avatar_url":"https://github.com/mtgsoftworks.png","language":"Java","readme":"\n# Java Random Number List Merger and Sorter\n\n### Overview\nThis Java program generates two lists of random integers, merges them into a third list, and performs sorting operations to display the combined list in ascending order.\n\n---\n\n### Features\n\n1. **Random Number Generation**: Generates 30 random integers between 0 and 9 for each of two lists (`list1` and `list2`).\n2. **List Merging**: Combines `list1` and `list2` into a new list (`list3`).\n3. **Sorting and Reversing**: First reverses `list3`, then sorts it in ascending order.\n4. **Output Display**: Prints the sorted merged list to the console.\n\n---\n\n### Code Explanation\n\n- **Random Number Generation**: Using a `for` loop, 30 random integers are added to both `list1` and `list2`.\n- **List Merging**: `list3` is initialized to combine `list1` and `list2`.\n- **Sorting**: `Collections.reverse()` initially reverses `list3`, and `Collections.sort()` then sorts it in ascending order.\n- **Output**: The sorted list `list3` is printed to the console.\n\n### Usage\n\nCompile and run the program:\n```bash\njavac Main.java\njava Main\n```\n\nThe program will output a sorted list of integers derived from two randomly generated lists.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtgsoftworks%2Fmath-algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtgsoftworks%2Fmath-algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtgsoftworks%2Fmath-algorithm/lists"}