what is the difference betweenandCode :input.next()
Code :findInLine(".")charat(0);
Printable View
what is the difference betweenandCode :input.next()
Code :findInLine(".")charat(0);
Hard to tell. You haven't given us any information about the classes/methods you posted. So: Can you give a little bit larger code snippet?
i mean is there any difference in the input it takes? or is it that both will capture any keyboard input
Well, i have no idea because I don't know in which context this code is placed. What kind of object is input? And if you know that, is there any javadoc that can tell us more about how it works?