Menu

JAVA TUTORIAL Archive

Simple Calculator in JAVA with switch case

We are going to make a Simple Calculator in JAVA with switch case.This calculator will have four basic arithmetic operations “Addition, Subtraction, Multiplication, and Division“.So, below is the JAVA code for the simple calculator. Code: import java.util.Scanner; class calc { public static void main(String args) { Scanner s=new Scanner(System.in); System.out.println(” Simple Calculator”); System.out.println(“Enter the first

Simple Hello World Program In JAVA With Output

Hello learners below is the code for “Simple Hello World Program In Java “, /*Simple hello world program*/ class helloworld { public static void main(String args) { System.out.println(“Hello World\n”); } } Output:   Hope you liked this if liked please share this and also please Subscribe to our Newsletters.
DMCA.com Protection Status