It can be an obvious question but I am thinking how to replace the method below with java 8 streams.
private String assembleString(int numberOfCharacters, char character) { StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < numberOfCharacters; i++) { stringBuilder.append(character); } return stringBuilder.toString(); } I am new in Java, so java 8 it is like an unexplored world for me.
Thank you!