Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to close scanner in java

import java.util.Scanner;

Scanner scan = new Scanner(system.in);
// ask and pick up responses

scan.close();//helps to avoid memory leaks 
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #close #scanner #java
ADD COMMENT
Topic
Name
4+4 =