+ 3
Can we compare scanner and String
Can we compare scanner and String in java
3 Answers
+ 7
Yes
+ 4
There is nothing to compare a Scanner and String to.
A Scanner is an Object used for file/input reading.
A String is an Object that is used for a sequence of characters.
There is no relationship between the two that can equate to any meaningful comparisons.
I assume this isn't actually what you meant to ask; so, can you provide an example?