Untitled
unknown
plain_text
4 years ago
286 B
6
Indexable
public class Test{ public static void main(String[] args) { Rectangle R1 = new Rectangle(); R1.setLength(4); R1.width = 3; R1.display(); R1.calculateArea(); Rectangle R2 = new Rectangle(5,4); System.out.println(R2.width); R2.getWidth(); R2.calculateArea(); } }
Editor is loading...