java

MenuBar in Java

Submitted by Erick_Ny on
This tutorial will teach you how to create MenuBar in java. I used JMenuBar,JMenu,JMenuItem. So, now let's start this tutorial! 1- Extract MenuBar.zip and copy to Eclipse Workspace 2- Open eclipse then click File/Import/General/Existing Projects into Workspace/Next 3- In the Select root directory: click Browse 4- Select MenuBar folder then OK/Finish If you find my code useful, send me an email at

Inheritance in JAVA

Submitted by moazkhan on

Inheritance in JAVA

In this tutorial you will learn 1) What is inheritance in JAVA? 2) How Inheritance is useful? 3) What is super class and subclass? 4) Function Overriding 5) How we implement inheritance in JAVA? What is inheritance in JAVA Inheritance is such a mechanism in JAVA by which the methods and data members of one class are inherited form to another class. It must be kept in mind that inheritance is between the two classes which have a lot of features in common. Inheritance is ‘is a’ relationship between two classes.

Loops in JAVA

Submitted by moazkhan on

Loops in JAVA

In this tutorial you will learn: 1) Why do we need loops in JAVA? 2) For loop in JAVA 3) While loop in JAVA 4) Do while loop in JAVA 5) Continue and Break Statement in JAVA Why do we need loops? Loops allows you to execute a statement or block of statements repeatedly. For loop is used when the number of iterations are already known. The for loops keep executing until the specific condition is met and when the certain condition is met the execution terminates.

1D Array in JAVA

Submitted by moazkhan on

1D array in JAVA

In this tutorial you will learn 1) What is array in JAVA? 2) Why we use arrays? 3) How we use arrays in JAVA coding? What is an Array? Array is a data structure used in programming languages to store similar type of items. Arrays are the simplest data structure. The contents of array can be quickly accessed and can easily be deleted. Arrays are used to put in independent variables of the same type in them. Array is just like a one directional block having equal sized partitions and each block we have a value stored.

Introduction to Object Oriented Programming

Submitted by moazkhan on

Introduction to Object Oriented Programming

In this part of the tutorial you will learn 1) What is object oriented programming 2) Why to use object oriented programming 3) Object oriented and JAVA 4) Advantages of object oriented programming What is object oriented programming? In object oriented type of programming we create the objects which has certain properties and the methods (functions) associated with it and we use these methods to perform the operations on the object.

The Switch Statement in JAVA

Submitted by moazkhan on

Calculator Using Switch

In this tutorial you will learn: JAVA coding essentials Taking input in java console What is switch statement Difference between switch and if else statement JAVA code for making the calculator using Switch Statements What is switch statement In JAVA programming the switch is the implementation by which we evaluate a variable and on the basis of which we change the control flow of our program. Through switch statement we define the multiple task which will be executed depending upon the value inside the variable.

Conditional Statements in JAVA

Submitted by moazkhan on

Conditional Statements in JAVA

In this tutorial you will learn: 1. JAVA coding essentials 2. Taking input in java console 3. JAVA code for making a calculator 4. How the basic arithmetic operations are performed in JAVA Making Java Project Basic Java console program: • Open Eclipse > Workspace • File > new > java project • File > new > class Basic Coding Strategy for making a Calculator In this tutorial I will teach you guys how to make a calculator, the calculator here can perform the operations of addition, s

Coding essentials and Java Input

Submitted by moazkhan on

Coding essentials and Java Input

In this tutorial you will learn: 1. Some coding essentials 2. Taking input in java console 3. Basic JAVA console program on conditional statements I have setting up the IDE now it’s time to start coding. The learning curve will be a little steep as we have much to cover. Some Coding Essentials This perhaps one of the most important things while programming in any language.

Introduction to JAVA

Submitted by moazkhan on

Introduction to JAVA

In this tutorial you will learn: 1. Setting up the Programming Environment 2. Setting up IDE 3. Basic JAVA Overview 4. Basic JAVA console Program Before starting coding you need to first setup the environment for coding. For that first go to Google and download JAVA development kit (JDK). Using this link. Download JDK After downloading you simply need to install the JDK.

Number To Words in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will convert a number and will become words in java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of NumberToWords.java. 2. Import the io library as we will need a user input. import java.io.*; 3. Now, we will declare our global variables. We will have variables for the inputting