Re:Why I like Java
by cbsmith on Tuesday March 25, 2014 @08:46AM
(#7465456)
> I'd still argue that stdin/stdout/stderr are instances of IO streams. I'd hope all programmers are relatively confident with manipulating IO streams. But these particular instances are really familiar to people working in Unix and uncommon to Windows people.
So, if I reframed the question as "copy the contents of one file to another" and asked them to write a class that implements:
public void copy(java.io.InputStream in, java.io.PrintStream out);
So, if I reframed the question as "copy the contents of one file to another" and asked them to write a class that implements:
Would that change the solution?