How to add two integer numbers in java using jshell on windows?

Опубликовано: 14 Октябрь 2024
на канале: Tech Garbage
49
0

We can add two integers value from command prompt using jshell in java. It is pretty simple steps to get result on the terminal.

Code ###
int a = 10;
int b = 5;
int result = a + b;
System.out.println(result);