Skip to content

Siddhipatade/Simple-Calculater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Simple-Calculater

Simple Calculater made with java GUI

This Java program creates a simple calculator with a graphical user interface (GUI) using the AWT (Abstract Window Toolkit) library.

Features

  • Addition: Enter two numbers and click the "+" button to perform addition.
  • Subtraction: Enter two numbers and click the "-" button to perform subtraction.
  • Result Display: The result of the calculation is displayed in a text field.

Getting Started

These instructions will help you compile and run the program on your local machine.

Prerequisites

  • Java Development Kit (JDK) installed on your machine.

Running the Program

  • Save the code in a file named Calci.java.

  • Open a terminal or command prompt and navigate to the directory where the Calci.java file is located.

  • Compile the Java code by executing the following command:

    javac Calci.java
    
  • Run the compiled program with the following command:

    java Calci
    
  • The calculator GUI will open in a new window.

  • Enter two numbers in the provided text fields.

  • Click the "+" button to perform addition or the "-" button to perform subtraction.

  • The result of the calculation will be displayed in the third text field.

Releases

No releases published

Packages

No packages published

Languages