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.
7 Answers
New Answerhttps://code.sololearn.com/cHYj6tu9y2aP/?ref=app
1/18/2022 11:02:53 AM
Oksana Zdanovich7 Answers
New AnswerTake 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() ;
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message