java code

this code is written for taking input from user using scanner.