import java.util.*; 
import java.lang.*; 
import java.io.*; 
// The main method must be in a class named "Main". 
class Main { public static void main(String[] args) { 
    System.out.println("Hello world!"); 
} 
    public class Triangle{ 
        private double width; 
        private double height; 
        public Triangle(int triWidth, int triHeight, String triColor){ 
            base = triWidth; 
            height = triHeight; 
            color = triColor; 
        }
        public double area{
            return 1.0/*base*height;
        }
        public void changeBase(int newBase){
            base = newBase;
        }
        public String toString(){
            return "this triangle  has a base of" + base + ", a height of " + height + " a color of " + color + " a area of" + area();
        } 
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: