13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.10 Resources97public static void main(String[] args){int i;FetchURL f;}}for (i = 0; i < args.length; i++){System.out.println(args[i] + ":");System.out.println(new FetchURL(args[i]));}3.9WHAT YOU STILL DON’T KNOWWe have deliberately avoided file I/O. For Java, it is a multilayered and complextopic—and with versi<strong>on</strong> 1.4 of Java, there is a whole new set of additi<strong>on</strong>alclasses (java.nio.*) to c<strong>on</strong>sider. We refer you instead to Chapter 11 of Eckel’sThinking in Java.There are also a few Java keywords that we have not yet discussed, notablysynchr<strong>on</strong>ize.Even if you know all the Java syntax, it may still take a while to get familiarwith the way that syntax is typically put to use. Experience and reading otherpeople’s Java code will be your best teachers—but d<strong>on</strong>’t assume that a particularapproach is good just because some<strong>on</strong>e else uses it; much new code has beenwritten in the last several years as people have learned Java. Be sure it’s a styleworth imitating, and if you find a better way to do it, use it.3.10RESOURCES• Bruce Eckel, Thinking in Java.• Cay S. Horstmann and Gary Cornell, Core Java 2: Volume 1 Fundamentals,especially Chapter 3.• John Lewis and William Loftus, Java Software Soluti<strong>on</strong>s.• The Sun Microsystems Java Tutorial. 1717. http://java.sun.com/docs/books/tutorial/index.html

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!