This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> rows = Files.readAllLines(Paths.get(fileName), StandardCharsets.UTF_8); | |
String header = rows.remove(0); | |
// You can then continue with your application logic | |
int headerColumnCount = header.split(Constants.SEPERATOR_ESCAPED).length; | |
for (String row : rows) { | |
System.out.println(row); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.function.Function; | |
import org.hamcrest.BaseMatcher; | |
import org.hamcrest.Description; | |
public class LambdaMatcher<T> extends BaseMatcher<T> | |
{ | |
private final Function<T, Boolean> matcher; | |
private final String description; |
NewerOlder