ADDITION

Addition Of Four Numbers Using JavaScript

Good Day!!!

In this tutorial, we are going to learn a simple program and this is called Addition Of Four Numbers Using JavaScript. Which have HTML Form Tag to have the sum of four numbers. We have four text box to input the number to be added, one for sum button, and one for the reset button to clear the input number that the user has a new value of the number to be added.

Creating simple Calculator in Java

Introduction

This tutorial is about creating simple calculator which performs only four operations. For creating a simple Calculator we require two JTextFields where the user can enter two numbers, four JButton for four operations namely addition, subtraction,multiplication and division, a JLabel for displaying the result.

Implementation

Step 1: Creating a class which extends JFrame because we are going to create an Application. After this we have to define the constructor of the class as follows. Super() is used to give title to the frame.