+ 2

Need help with java code. The problem is - need to create a showRectangleInfo() method that is given the length of both sides.

In the print method the arrays perimeter , area and the fact the rectangle is a square (if it is)

28th Dec 2022, 5:47 PM
DSLV
DSLV - avatar
3 Answers
+ 3
I do not really understand what will be needed to do and hope this shows you the way how can be it done. By the way it will be recommended to learn the java basics here with Sololearns tutorial. https://code.sololearn.com/cdtLVq9ngI1a/?ref=app
28th Dec 2022, 8:55 PM
JaScript
JaScript - avatar
+ 3
Code is modified and now resistant on a wrong input.
29th Dec 2022, 3:56 PM
JaScript
JaScript - avatar
+ 2
Hi Tnx for your response. Here is my first try- https://www.sololearn.com/compiler-playground/cQF7Z4Cle0Ht p.s- im new commer in Java
28th Dec 2022, 6:32 PM
DSLV
DSLV - avatar