0
What is the 'new' in scanner line? What is its purpose?
4 Answers
0
Scanner is the class, so you make a Scanner object by using the new keyword.
0
Okay so instead of new, I can put any word since its only an object? Like scanner ip = object1 scanner(system.in)?
0
Oh okay. What is the object name then?
0
Well it's not my fault that they didn't mention which word was exactly was for. I know c/c++ so you really don't need to think of me as dumb. Thank you for your help.