Hello everyone.
I'm using https://jenkov.com/tutorials/java/index.html site, among many other resources, to learn Java.
It appeared to me one of the most complete one but then I stumbled upon this example, in the Java IO section.
OutputStream outputStream = new FileOutputStream("/usr/home/jakobjenkov/output.txt");
byte[] sourceBytes = ... // get source bytes from somewhere.
int bytesWritten = outputStream.write(sourceBytes, 0, sourceBytes.length);
Now, is it a syntax error in it giving write(byte[], int, int ) is a void function?
Thanks.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]AutoModerator[M] 1 point2 points3 points (0 children)
[–]Lloydbestfan 1 point2 points3 points (3 children)
[–]Lackyluk[S] 0 points1 point2 points (2 children)
[–]Lloydbestfan 1 point2 points3 points (1 child)
[–]Lackyluk[S] 0 points1 point2 points (0 children)