The Java Tutorial: Object-oriented Programming for the InternetFollow you own path to expertise with this self-guided tour for the Java programming language. Written by two members of the JavaSoft team at Sun, the book employs a hands-on interactive approach to teaching Java basics, object-oriented concepts, applet programming and everything else you need to know to become a proficient Java programmer. Through plentiful examples and skill-building exercises, The Java Tutorial introduces you to fundamental concepts and applications. Designed so that you can customize your own path through the specific information you need to learn, the book explains the nuts and bolts of the language, applet construction, and the core Java classes. You will also learn about more advanced topics such as creating a user interface with Java, threads programming, working with Java's networking and security capabilities, and adding non-Java libraries to Java applications. The accompanying CD-ROM contains the tutorial and all its code samples, the Java Developers Kit (JDK), and code for all the winning applets in the Java International Programming Contest as well as developer tools from MetroWerks, SunSoft, Symantec, and others. |
From inside the book
Results 1-3 of 41
Page 334
... DataInputStream onto the source InputStream so that it can use the DataInputStream's readLine method to read each line from the file . DataInputStream is a filtered stream which must be attached to ( mapped onto ) an InputStream whose ...
... DataInputStream onto the source InputStream so that it can use the DataInputStream's readLine method to read each line from the file . DataInputStream is a filtered stream which must be attached to ( mapped onto ) an InputStream whose ...
Page 341
... DataInputStream to the standard input stream as in the following code : DataInputStream dis = new DataInputStream ( System . in.read ( ) ) ; String input ; while ( ( input } = dis.readLine ( ) ) ! = null ) { // do something interesting ...
... DataInputStream to the standard input stream as in the following code : DataInputStream dis = new DataInputStream ( System . in.read ( ) ) ; String input ; while ( ( input } = dis.readLine ( ) ) ! = null ) { // do something interesting ...
Page 342
... DataInputStream dis = new DataInputStream ( new FileInputStream ( " invoice1.txt " ) ) ; DataInputStream , must also be attached to some other InputStream , in this case , a FileInputStream set up to read the file just written ...
... DataInputStream dis = new DataInputStream ( new FileInputStream ( " invoice1.txt " ) ) ; DataInputStream , must also be attached to some other InputStream , in this case , a FileInputStream set up to read the file just written ...
Contents
Getting Started | 1 |
Writing Java Programs 27 3 | 27 |
End of Trail | 143 |
Copyright | |
17 other sections not shown
Common terms and phrases
action allow animation applet application args argument array boolean browser Button catch character client compiler component connection constructor contains create default defines display drawing error event example exception explained extends false filter final Frame function Graphics handle implements import indicates initialization input instance interface IOException Java Java programs java.lang Label language layout manager lesson loaded look loop Menu native method Note null object occurs operator package paint Panel parameter passed perform port problem Producer properties provides public void rectangle reference requires runtime server shows socket SOURCE CODE specify standard statement static stop stream String subclass thread throws tion true variable wait window write