I don't even remember that episode, but I think I can answer
My own knowledge of computer code is, believe it or not, limited to BASIC (you just be quiet, all you young whippersnappers!) so I'm curious to know what those who actually understand programming think about what Sam is writing on the white board here:
It's Java she is writing (which is interesting in itself, since I would have guessed they'd be using C++...), but it looks okay for me. What I can read is just opening a file for writing (outfile, which she sets to length 0, I suppose for the case that it already exists) and declaring a few variables (a byte array and two long number variables). Below that she is initializing some objects, I suppose. Nothing fancy, but the code looks correct to me.
no subject
It's Java she is writing (which is interesting in itself, since I would have guessed they'd be using C++...), but it looks okay for me. What I can read is just opening a file for writing (outfile, which she sets to length 0, I suppose for the case that it already exists) and declaring a few variables (a byte array and two long number variables). Below that she is initializing some objects, I suppose. Nothing fancy, but the code looks correct to me.