What code can you use to get user input for the value of age and money | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

What code can you use to get user input for the value of age and money

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

20th Mar 2019, 1:41 PM
Red_Scar115
5 Answers
+ 5
Pls remove profanity from your code
20th Mar 2019, 1:49 PM
Maneren
Maneren - avatar
+ 4
You can use the Scanner class: import java.util.Scanner; Scanner input = new Scanner(System.in); int age = input.nextInt(); int money = input.nextInt(); And I think you should read this: https://www.sololearn.com/Terms-of-Use/
20th Mar 2019, 2:16 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
I removed the words, plz forgive me
20th Mar 2019, 2:23 PM
Red_Scar115
+ 2
Red_Scar115 It is okay. :)
20th Mar 2019, 2:26 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Ok thnx and i didn't know the terms of use so thnx for the link and i will remove it now
20th Mar 2019, 2:17 PM
Red_Scar115