Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

1 Visitor Messages

  1. Write a class that represents triangle named Triangle, the class must have the following members:
    private double height; //Height
    private double base;//Base length
    public Triangle(double h, double b);//Constructor
    public void setHeight(double x);//Sets height
    public double getHeight();//Gets height
    public void setBase(double x);//Sets base length
    public double getBase();//Gets base length


    public double getArea();//Returns the area of ​​the triangle
Showing Visitor Messages 1 to 1 of 1
About SominJihyoHaha26

Basic Information

About SominJihyoHaha26
Java Skill Level:
Beginner

Statistics


Total Posts
Total Posts
2
Posts Per Day
0.02
Visitor Messages
Total Messages
1
Most Recent Message
September 27th, 2022 07:27 AM
Total Thanks
Total Thanks
0
  • Thanked 0 Times in 0 Posts
General Information
Last Activity
September 27th, 2022 08:25 AM
Join Date
September 27th, 2022