file names and class names in java

Solutions on MaxInterview for file names and class names in java by the best coders in the world

showing results for - "file names and class names in java"
Luisa
17 Mar 2016
1class Triangle {
2            int x, y;
3            void printArea()
4            {
5                        System.out.println("Area of triangle is: " + x * y / 2);
6            }
7}
8class Demo {
9            public static void main(String args[])
10            {
11                        Triangle t = new Triangle();
12                        t.x = 10;
13                        t.y = 13;
14                        t.printArea();
15            }
16}
similar questions
queries leading to this page
file names and class names in java