Hi there,
I am new to Java and have a question about user input.
In my book they use Keyboard.readInt() etc
A tutorial I watch does
Scanner input = new Scanner(system.in)
I also saw a few videos doing, well I don't remember exactly but something like...
I remember they imported io.* or somethig, and before the class body they wrote throws exception.
And they also had to use bufferedReader.
Is any of these ways the 'best' way?
Or perhaps one/some/all of these ways are outfated?
Or simply bad for some reason?
Whicj one should I use?
I'm watching tutorials with Scanner, so that is what I'm most comfortable with.
Alsi, I have seen some classes looking like
Class name extends b{}
What does that mean? That might be too advanced for me though as I am pretty new to Java.