Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

load a list from text file java

List<String> result;
	try (Stream<String> lines = Files.lines(Paths.get(fileName))) {
		result = lines.collect(Collectors.toList());
	}
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #load #list #text #file #java
ADD COMMENT
Topic
Name
1+3 =