Java Program to Draw a Circle

Java program to draw a circle import java.awt.*; import java.awt.event.*; import java.awt.geom.*; public class DrawCircle extends Frame { // input the value for circle and square. Shape circle=new Ellipse2D.Float(100.0f,100.0f,100.0f,100.0f); //…

0 Comments

Java Program to Convert Decimal to Octal

Java program to convert Decimal to Octal import java.util.Scanner; class DecimalToOctalConversionClass{ public static void main(String[] args){ //create Scanner object Scanner sc = new Scanner(System.in); System.out.println("Enter Any Decimal Number :"); //Accept…

0 Comments

Java Program to Build a Calculator

Java program to build a calculator import java.util.Scanner; public class Calculator { public static void main(String args[]) { // declare here float a,b,res; char choice, ch; Scanner S=new Scanner(System.in); do…

0 Comments