stop asking silly question s and help me if u can,....if you can't then leave the page
Type: Posts; User: guled
stop asking silly question s and help me if u can,....if you can't then leave the page
it is in java.lang.object
public class Rectangle
{
private int width;
private int height;
public Rectangle(int width, int height)
{
Rectanlge x = new Rctangle(int width, int height);
int x = getCircumference();...
it says the method getDiagonal is undefined for the type Rectangle
--- Update ---
it says the mehod getDiagonal() is undefined for the type Rectangle
The UML diagram of the Rectangle class of type.lib contains the following two entries in the method compartment:
getCircumference() : int
hashCode() : int
write the app that...
public class Rectangle {
public Rectangle(int width, int height) {
Rectangle x = new Rectangle(7, 9);
double d = x.getDiagonal();
System.out.println(d);
}
so guide me through because am a beginner, I want the value of x to be displayed. ..thanks
--- Update ---
thanks
import java.lang.System;
public class Check01D {
public static void main(String[] args) {
// TODO Auto-generated method stub
double z;
z = 1.0 - "A" / 2.0 + 1.0 % 2.0;
double y;...