Campbell wrote:I know you have been told to write comments to explain the code, but most of those comments don't say anything that isn't already obvious from reading the code. Methods shouldn't have // comments anyway; they should have proper documentation comments with /** ... */ .
Jordi Sedo wrote:Sorry Piet, the nbrAuthors it’s a variable I have defined in the OnlineCourse, and initialized it at the constructor. So I had to stop using the static modifier for my sorting method so I could use nbrAuthors as the limit of my for
Carey Brown wrote:Streams...
The String class has a chars() method that creates a stream of characters as ints. What I want to put after that is a black box that keeps taking in characters and buffers them and has a state machine to determine when it needs to take some of the buffer and output a Stream of Strings. I'm not familiar with any Stream operations that take one Stream and turn them into another Stream that has a different rate of input to output.