What code can you use to get user input for the value of age and money | SoloLearn: Learn to code for FREE!

-4

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

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

3/20/2019 1:41:43 PM

Red_Scar115

5 Answers

New Answer

+5

Pls remove profanity from your code

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

+2

I removed the words, plz forgive me

+2

Red_Scar115 It is okay. :)

+1

Ok thnx and i didn't know the terms of use so thnx for the link and i will remove it now