0

even in the case of two inputs, I use to give two inputs in a separate line?? is it the proper way (however, output didn't come)

public void main(String[] args){ Scanner scan= new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); it tried to add both. but confused about where to give input. #sololearn

15th Apr 2020, 4:40 AM
SASIM WD
SASIM WD - avatar
1 Answer
+ 4
Run this code please, you will understand how input works in SoloLearn once you see it 👍 (Edit) The main method signature is incorrect BTW, It should have 'static' access like this 👇 public static void main(String[] args) https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
15th Apr 2020, 5:17 AM
Ipang