This video goes through how to take inputs in Java using the Scanner class
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.