Posts by M. L • 1 point
2 posts
-
0
votes1
answer34
viewsA: How do I value a value passed by Set?
Thanks, I figured out what the mistake was. I was taking the wrong values to make the calculation. This is what the code should look like: Passing by myRectangle.getLength(), myRectangle.getWidth()…
-
0
votes1
answer34
viewsQ: How do I value a value passed by Set?
I wanted to know how do I add a new value to length and width through setLength and Setwidth, and this value goes through validation ((x > 0 && x < 20)? x : 0): public class Rectangle…