In java,about inputing using Scanner class : what i understood from my past experiences is  .nextInt() or .nextDouble() would keep on searching until the integer or the double is found in the same or the next line it doesn't matter,while to read a string as input through scanner class .next() considers those strings before space and keeps the cursor in the same line,where as .nextLine() would consider the leftovers by the .next() if used before the .nextLine() in code,could someone help me understand this in more detail,espically about .nextLine() where it starts and where the cursor ends?Also,please tell me if any mistakes i thought are correct.