About 3,370,000 results
Open links in new tab
  1. Rectangle (Java Platform SE 8 ) - Oracle

    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's upper-left point (x,y) in the coordinate space, its width, and its height.

  2. java - Constructing Rectangle - Stack Overflow

    In order to get your Rectangle to appear on-screen, we need to create a window, set its size, and fill the window's content pane with a component which will draw the rectangle onto the screen.

  3. Java How To Calculate the Area of a Rectangle - W3Schools

    Explanation: We store the rectangle's length and width in two variables. Then we multiply them (length * width) to get the area. Finally, we print the result, which in this example is 10.

  4. Exploring the Rectangle Class in Java - javaspring.net

    Jun 11, 2025 · In Java, the Rectangle class is an essential part of the Java standard library, specifically within the java.awt package. It provides a convenient way to represent and …

  5. Intro to Java Programming, Y. Daniel Liang - Rectangle.java

    publicclass Rectangle extends GeometricObject { privatedouble width; privatedouble height; public Rectangle () { } public Rectangle (double width, double height) { this.width = width; …

  6. Java - Calculate area and perimeter of a rectangle - w3resource

    May 17, 2025 · Java Object Oriented Programming - Create a class called Rectangle with width and height attributes, calculates the area and perimeter of the rectangle, and demonstrates …

  7. Rectangle.java - Princeton University

    * ******************************************************************************//** * The {@code Rectangle} class is an immutable data type to encapsulate a * two-dimensional axis-aligned …

  8. Rectangle (Java SE 26 & JDK 26 [build 1])

    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's upper-left point (x,y) in the coordinate space, its width, and its height.

  9. Rectangle2D (Java Platform SE 8 ) - Oracle

    The Rectangle2D class describes a rectangle defined by a location (x,y) and dimension (w x h). This class is only the abstract superclass for all objects that store a 2D rectangle.

  10. Draw Rectangle in Java - kb.aspose.com

    Aug 28, 2025 · This article demonstrates how to draw rectangle in Java. It covers the IDE setup, the method, and a practical code example to create a rectangle in Java.