+ 2

How to read the inputs from the command line?

Let's say I have a java file called sum.java And it takes three inputs. I am using scanner for these inputs. So I wanna run it from the command line using: > java sum 5 4 2 Another way without waiting for the scanner to ask for them.

5th Dec 2020, 7:22 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
1 Odpowiedź
+ 2
Thank you so much Martin Taylor the link you sent was super helpful ^^
5th Dec 2020, 9:31 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar