ArrayList (Dynamic Array) in JAVA

Submitted by moazkhan on

ArrayList(dynamic array) in JAVA

In this tutorial you will learn 1) What is an ArrayList? 2) Why we use ArrayList? 3) How we use ArrayList? What is an ArrayList? ArrayList is a data structure. The ArrayList is java class that is extended from AbstractList class. It is actually an array but the property that makes it different from the ordinary array is that its size can be changed dynamically. The ordinary array’s size in unchangeable once defined.

2D Array in JAVA

Submitted by moazkhan on

2D arrays in JAVA

In this part of tutorial you will learn 1) What is a 2D array? 2) Why we use 2D arrays? 3) How we use 2D arrays in java programming? What is a 2D array? One dimensional array is a linear array, while the two dimensional array is such an array which has the rows as well as columns. The 2 dimensional is an array within an array so the each entry is divided further allowing us more entries to be included. It is a nonlinear array which is has a vertical length and horizontal length as well. Why we use 2D arrays?

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.

Access Specifiers, Attributes and Methods in JAVA

Submitted by moazkhan on

Access Specifiers, Attributes and Methods in JAVA

In this part of the tutorial you will learn. 1) What are the Access Specifiers in JAVA and how we use them? 2) What are the attributes in JAVA and how we use them? 3) What are the Methods in JAVA and their use? What are the Access Specifiers in JAVA and their use? The access to the contents of the class’s attribute and the methods is determined by the access specifiers.

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.

Structure of a Method in JAVA

Submitted by moazkhan on

Structure of a Method in JAVA

In this tutorial you will learn 1. Basic structure of a method 2. Input into methods 3. Output from methods 4. How Methods are used in JAVA program Basic structure of a method The function in C programming are referred to as Methods in JAVA. They are the set of instruction which are clustered together to perform some specific operation to the input they are given and then the data is returned back to the main of the program or to the Method in which they arr called.

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.