- 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 Antworten
+ 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