It works. But what i have to change if i would like to insert and receive different values? I can't understand it. Please, help. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

It works. But what i have to change if i would like to insert and receive different values? I can't understand it. Please, help.

https://code.sololearn.com/cHYj6tu9y2aP/?ref=app

18th Jan 2022, 11:02 AM
Oksana Zdanovich
Oksana Zdanovich - avatar
7 Answers
18th Jan 2022, 11:59 AM
Simba
Simba - avatar
+ 2
Thanks a lot, friend. I will try to do it.
18th Jan 2022, 11:12 AM
Oksana Zdanovich
Oksana Zdanovich - avatar
+ 2
I am so happy!!!! Couse i did it.) I am a winner!!! With your help, guys.
18th Jan 2022, 1:31 PM
Oksana Zdanovich
Oksana Zdanovich - avatar
+ 1
Guys!!! Don't click this link!!! Becouse happens something terrible.
18th Jan 2022, 11:44 AM
Oksana Zdanovich
Oksana Zdanovich - avatar
+ 1
Thanks a lot.
18th Jan 2022, 12:05 PM
Oksana Zdanovich
Oksana Zdanovich - avatar
0
Take the user input.. How? Revisit this lesson: Taking User Input https://www.sololearn.com/learning/2220/ Make a Scanner object, and use it's methods... Before that import Scanner class... 1) import java.util.Scanner; 2) Scanner inp = new Scanner(System.in) ; 3) take user input of line of string.. String str = inp.nextLine() ;
18th Jan 2022, 11:08 AM
Jayakrishna 🇮🇳
0
You're welcome..
18th Jan 2022, 11:21 AM
Jayakrishna 🇮🇳