operator in java

Operators in Java

Operators in Java Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following group. Types of operator in Java Arithmetic Operator Relational Operator Bitwise Operator Logical Operator Assignment Operator 1) Arithmetic Operator in Java Arithmetic operators are used in mathematical Read more…

How to take user input in java

Take user input in Java

How to take user input in Java JAVA Syntax :       import java.util.Scanner       Scanner sc = new Scanner(System.in) The syntax given above is use to take the input from the user. The syntax import java.util.Scanner is a package & the  Scanner sc = new Scanner(System.in) is a class of Read more…