{"id":21473838,"url":"https://github.com/bell-kevin/rectangle","last_synced_at":"2025-06-20T04:07:19.235Z","repository":{"id":235743895,"uuid":"498943348","full_name":"bell-kevin/rectangle","owner":"bell-kevin","description":"Write a class definition for a Rectangle class that contains:      Two int fields, length and width     Mutator and accessor methods for the length and width fields. Ask the user for these values in the mutator methods.     A Boolean method named isSquare that returns true if the rectangle’s length and width are the same and false otherwise.     A method that returns the perimeter of the rectangle     A method that returns the area of the rectangle  Write a class definition for a Rectangle Driver class that tests all of the methods.      Create a Rectangle object named paper.     Use the mutator methods to assign user-input values for the length and width fields     Use the Boolean method to determine if paper is a square.         If it is a square, print “This paper is a square: ” and the square’s dimensions         If it is not a square, print “This paper is a rectangle: ” and the rectangle’s dimensions         Be sure to use the accessor methods to retrieve the dimensions for printing.     Print out the rectangle’s perimeter and area","archived":false,"fork":false,"pushed_at":"2022-08-26T16:18:50.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T04:06:56.576Z","etag":null,"topics":["accessor","boolean","classes","methods","mutator","object-oriented-programming","oop-principles","rectangle"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bell-kevin.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-06-02T00:49:21.000Z","updated_at":"2024-04-24T06:01:57.000Z","dependencies_parsed_at":"2024-04-26T18:15:12.622Z","dependency_job_id":null,"html_url":"https://github.com/bell-kevin/rectangle","commit_stats":null,"previous_names":["bell-kevin/rectangle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bell-kevin/rectangle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2Frectangle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2Frectangle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2Frectangle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2Frectangle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bell-kevin","download_url":"https://codeload.github.com/bell-kevin/rectangle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bell-kevin%2Frectangle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260878435,"owners_count":23075960,"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":["accessor","boolean","classes","methods","mutator","object-oriented-programming","oop-principles","rectangle"],"created_at":"2024-11-23T10:19:06.083Z","updated_at":"2025-06-20T04:07:14.215Z","avatar_url":"https://github.com/bell-kevin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rectangle\nWrite a class definition for a Rectangle class that contains: \n\n-Two int fields, length and width     \n-Mutator and accessor methods for the length and width fields. Ask the user for these values in the mutator methods.     \n-A Boolean method named isSquare that returns true if the rectangle’s length and width are the same and false otherwise.     \n-A method that returns the perimeter of the rectangle     \n-A method that returns the area of the rectangle  \n\nWrite a class definition for a Rectangle Driver class that tests all of the methods.\n\n-Create a Rectangle object named paper.     \n-Use the mutator methods to assign user-input values for the length and width fields     \n-Use the Boolean method to determine if paper is a square.         \n  +If it is a square, print “This paper is a square: ” and the square’s dimensions         \n  +If it is not a square, print “This paper is a rectangle: ” and the rectangle’s dimensions         \n  +Be sure to use the accessor methods to retrieve the dimensions for printing.     \n-Print out the rectangle’s perimeter and area\n\n== We're Using GitHub Under Protest ==\n\nThis project is currently hosted on GitHub.  This is not ideal; GitHub is a\nproprietary, trade-secret system that is not Free and Open Souce Software\n(FOSS).  We are deeply concerned about using a proprietary system like GitHub\nto develop our FOSS project. I have a [website](bellKevin.me) where the\nproject contributors are actively discussing how we can move away from GitHub\nin the long term.  We urge you to read about the [Give up GitHub](https://GiveUpGitHub.org) campaign \nfrom [the Software Freedom Conservancy](https://sfconservancy.org) to understand some of the reasons why GitHub is not \na good place to host FOSS projects.\n\nIf you are a contributor who personally has already quit using GitHub, please\n[email me](bellKevin.me) for how to send us contributions without\nusing GitHub directly.\n\nAny use of this project's code by GitHub Copilot, past or present, is done\nwithout our permission.  We do not consent to GitHub's use of this project's\ncode in Copilot.\n\n![Logo of the GiveUpGitHub campaign](https://sfconservancy.org/img/GiveUpGitHub.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Frectangle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbell-kevin%2Frectangle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbell-kevin%2Frectangle/lists"}