{"id":19328542,"url":"https://github.com/tmhsdigital/java","last_synced_at":"2025-02-24T06:40:51.433Z","repository":{"id":244187312,"uuid":"814520032","full_name":"TMHSDigital/JAVA","owner":"TMHSDigital","description":"Java \u0026 JS","archived":false,"fork":false,"pushed_at":"2024-06-13T07:57:39.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T07:28:58.165Z","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/TMHSDigital.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":"2024-06-13T07:10:20.000Z","updated_at":"2024-07-03T18:53:59.000Z","dependencies_parsed_at":"2024-06-13T10:16:36.221Z","dependency_job_id":"e362581f-cca0-4a8b-85a7-739d0067735f","html_url":"https://github.com/TMHSDigital/JAVA","commit_stats":null,"previous_names":["fouttamypaint/java","tmhsdigital/java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TMHSDigital%2FJAVA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TMHSDigital%2FJAVA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TMHSDigital%2FJAVA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TMHSDigital%2FJAVA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TMHSDigital","download_url":"https://codeload.github.com/TMHSDigital/JAVA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240434183,"owners_count":19800546,"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","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-10T02:22:48.556Z","updated_at":"2025-02-24T06:40:51.378Z","avatar_url":"https://github.com/TMHSDigital.png","language":"Java","readme":"# Java Demonstrations\n\nThis repository contains simple Java demonstration projects.\n\n## Project List\n\n1. **Hello World**\n2. **Simple Calculator**\n3. **Tic-Tac-Toe Game**\n\n---\n\n### Hello World\n\nA basic \"Hello World\" program.\n\n#### Running the Hello World Program\n\nTo run the Hello World program, navigate to the `HelloWorld` directory and use the following command:\n\n```sh\ncd HelloWorld\njavac Main.java\njava Main\nSimple Calculator\nA simple calculator that performs basic arithmetic operations.\n\nRunning the Calculator Program\nTo run the Calculator program, navigate to the Calculator directory and use the following command:\n\nsh\nCopy code\ncd Calculator\njavac Calculator.java\njava Calculator\nTic-Tac-Toe Game\nA command-line Tic-Tac-Toe game for two players.\n\nProject Structure\nbash\nCopy code\n/src\n  /TicTacToe\n    Game.java\n    Player.java\n    TicTacToe.java\nEnhancements\nAdded comments to explain the purpose and functionality of each method and section of code.\nExtracted magic numbers and defined constants for them.\nUsed enums for players instead of characters.\nAdded input validation to handle invalid inputs more gracefully.\nSeparated game logic from the user interface.\nRunning the Tic-Tac-Toe Game\nTo run the Tic-Tac-Toe game, navigate to the TicTacToe directory and use the following commands:\n\nsh\nCopy code\ncd TicTacToe\njavac *.java\njava TicTacToe.TicTacToe\nHow to Run the Entire Project\nNavigate to the src directory and follow the instructions for each individual project:\n\nsh\nCopy code\ncd src\nFor Hello World:\n\nsh\nCopy code\ncd HelloWorld\njavac Main.java\njava Main\ncd ..\nFor Simple Calculator:\n\nsh\nCopy code\ncd Calculator\njavac Calculator.java\njava Calculator\ncd ..\nFor Tic-Tac-Toe Game:\n\nsh\nCopy code\ncd TicTacToe\njavac *.java\njava TicTacToe.TicTacToe\ncd ..\nContributions and Feedback\nFeel free to fork this repository and make your own contributions. If you have any feedback or suggestions, please open an issue or submit a pull request.\n\nLicense\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\nAcknowledgments\nThanks to the open-source community for providing resources and inspiration.\nmarkdown\nCopy code\n\n### Committing the Updated `README.md`\n\n1. **Update the README.md**:\n\nEnsure the `README.md` file is saved with the above content.\n\n2. **Commit and Push Changes**:\n\nRun the following commands in your terminal:\n\n```sh\ngit add README.md\ngit commit -m \"Update README with project details and enhancements\"\ngit push origin main\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmhsdigital%2Fjava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmhsdigital%2Fjava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmhsdigital%2Fjava/lists"}