Standard IO


Standard I/O

C++ makes use of the cin identifier and the >> operator to read keyboard input. Java uses a static instance of the InputStream class named System.in to do the same thing. C++ uses the cout identifier with the << operator to write data to the console. Java uses a static instance of the PrintStream class named System.out to represent the standard output stream. Java does not use either the << or >> operators for I/O functions but does use these symbols to represent bitwise shift operators.



Technical Java. Applications for Science and Engineering
Technical Java: Applications for Science and Engineering
ISBN: 0131018159
EAN: 2147483647
Year: 2003
Pages: 281
Authors: Grant Palmer

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net