new Scanner(System.in) is a call to the constructor for a Scanner object. What you're doing is creating a new Scanner object then assigning that object to the variable number (for a more verbose...
Type: Posts; User: helloworld922
new Scanner(System.in) is a call to the constructor for a Scanner object. What you're doing is creating a new Scanner object then assigning that object to the variable number (for a more verbose...