I have an array list
List<String> items = Arrays.asList("date=2017-01-10", "date=2017-02-10");
I want to convert this list and have quotes for each item in the list so
date=2017-01-10 can be converted to date='2017-01-10'
List<String> items = Arrays.asList("date='2017-01-10'", "date='2017-02-10'");
How can i do in Java 8 ?
UPDATE: I want to use regex to achieve this.
forEach, and the actualfor-eachJava7-style creates almost no garbage.