Category: java


What is a polygon? | Area of Triangle in java What is a polygon? A polygon is any 2-dimensional shape formed with straight lines. Triangles, quadrilateral, pentagon and hexagon are all examples of polygons. A regular polygon is a polygon Read more…


To calculate Area of Circle in java program Area of Circle in java The following Java program to print the area of a circle has been written in five simple different ways, static method, using constructor, Interface, inheritance with sample Read more…


Addition through user input value In this program, you’ll learn to store and add two integer numbers in Java. After addition, the final sum is displayed on the screen. Source code import java.io.*; import java.util.*; class Add { public static Read more…


Addition of two number in this  program user will not  enter number form the keyboard. Value is fixed and you can see out put on the screen Source Code import java.io.*; import java.util.*; class Add { public static void main(String[] Read more…

Categories