+ 2
Plzz help for my problem in java
"create a program that will ask for the name and no. of times to display" how can I input a name and no. of times ?? can I use a loop, array ? etc.
7 ответов
+ 7
It depends, what type of application are you trying to build? for web create one form that will take two input or for console use Scanner class to take two inputs.
+ 7
Input name in string. Use for/while loop print it multiple times
+ 7
created a code for you hope it helps you :)
run the code in IDE ;) not on playground
https://code.sololearn.com/cCc186CWP0s1/?ref=app
+ 6
your welcome brother :-)
+ 6
@Muhammad
There's no reason to create a new scanner object for every line of input you take, just use one scanner.
+ 2
tnx a lot for your code muhammad ahmed😀😀