Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to check the lines in a file java scanner

int count = 0;
while (scanner.hasNextLine()) {
    count++;
    scanner.nextLine();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #lines #file #java #scanner
ADD COMMENT
Topic
Name
9+5 =