Java Switch Statement

Java Switch Statement

Java Switch Statement Java  Switch Statement.The conditional statement provide programmer the ability to step through different cases under different condition. For instance when a switch is trigger there might be different cases or condition within the switch . Each single different condition within a switch , is called a case. When the Case is being … Read more

If Else Conditional Statement in Java

If Else Conditional Statement in Java

If Else Conditional Statement in Java If Else Conditional Statement in Java.In this article we will step into how to create an if else statement in JAVA. Generally speaking all programming Languages has its own version of if else statement in their Language. Basically the if else statement are logical statement use by machine to … Read more

Constructor in Java

Constructor in Java

Constructor in Java Constructor in Java. In this Article we will look into our class and learn how to create a constructor. What is a Constructor No Constructor Features 1 A contructor is created automatically , when you did not create or declare a constructor specifically in your class. 2 Structure of the Constructor is similar … Read more

Getter and Setter in Java

Getter and Setter in Java

Getter and Setter in Java Getter and Setter in Java. In this article we will look into what is a getter and setter and how to create a getter setter following step by step through the sample program that i have created below. In order to show what is a getter and setter, i will … Read more

Java equivalent of cin

Java equivalent of cin

Java equivalent of cin Java equivalent of Cin. The Language is build  based on “OOP”, All inputs and output will need  to be treated as an object of a class.In order to use this class you must import import java.util.*; The Equivalent of cin in Java is ” Scanner”which reside inside the java.util package mentioned above.If … Read more