Scan this and that...

As far as I know (which may not be much), there is no method next.Int(). There is a method nextInt() from the Scanner class:Scanner (Java Platform SE 6)
Maybe you can find what you're looking for there.

Luck,
CJSL

Chris S.Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

It sounds like you want to use trim()... That is the built in version of what you are looking for... For instance if you are reading a string from a file and the the text in the file is:

Java Code:

SomeText \n

Notice the "\n" is 10 spaces after the last letter... The "\n" represents the end of the line... If you were trying to compare this to "SomeText" it would not match... So you will need to trim the white space... If you had to make your own you would probably have to do something like this: