We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
scanner.close() method is a part of java.util.scanner class . it closes scanner which is opened. and if scanner is already closed it wont have any effect on calling this method .
Java Loops I
You are viewing a single comment's thread. Return to all comments →
scanner.close() method is a part of java.util.scanner class . it closes scanner which is opened. and if scanner is already closed it wont have any effect on calling this method .