r/javahelp • • Mar 07 '13

Rewriting Unix in java?

Hey guys!

I'm doing an assignment right now in class where we have to create the unix 'cat' code, but in java, and me n my friend are soooo stuck...

does anyone have any ideas??

Thanks! :)

0 Upvotes

9 comments sorted by

View all comments

Show parent comments

0

u/ashlee_code33 Mar 08 '13

ok well it prints the files... so am i done, or should I get rid of the print line? omg thanks so much for this btw

4

u/Nebu Writes Java Compilers Mar 08 '13

Assuming you've read the assignment, you are probably in a better position to judge whether you are done or not.

0

u/ashlee_code33 Mar 08 '13

lol, I just mean with this section.. the asignment wants me to take the files in and put them to standard out (direct quote)... this is vernacular we havent used yet...

2

u/m1ss1ontomars2k4 Mar 08 '13

Standard out is System.out in Java. So if you do System.out.println("asdf"), you've printed "asdf" to standard out. It's also possible you should use System.out.print instead of System.out.println.