Category Archives: Java8

CSV: How to sort by several columns in Java8

CSV_SortByThreeColumns.java package example.stream; import java.io.BufferedReader; import java.io.IOException; import java.io.StringReader; import java.util.Comparator; import java.util.stream.Stream; /** * Let’s say there is a comma delimited file with the first line describing column names: * Name, State, Years of experience * Here is how … Continue reading

Posted in Java8, workday | Leave a comment

CSV: How to skip the first line in Java8

CSV_SkipFirstLine.java package example.stream; import java.io.BufferedReader; import java.io.IOException; import java.io.StringReader; import java.util.stream.Stream; /** * Let’s say there is a comma delimited file with the first line describing column names. * In this example a person name and state. * Here is … Continue reading

Posted in Java8, workday | Leave a comment