06.01.2013 Views

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

426 <strong>Learning</strong> <strong>Processing</strong><br />

fi g. 23.1 http://java.sun.com/j2se/1.4.2/docs/api/<br />

And so, very quickly, you will fi nd yourself completely lost. And that is OK. Th e Java API is huge.<br />

Humongous. It is not really meant <strong>to</strong> be read or even perused . It is really pure reference, for looking up<br />

specifi c classes that you know you need <strong>to</strong> look up.<br />

For example, you might be working on a program that requires sophisticated random number<br />

generation beyond what random( ) can do, and you overheard a conversation about the class “ Random ”<br />

and thought “ Hey, maybe I should check that out! ” Th e reference page for a specifi c class can be<br />

found by scrolling down the “ All Classes ” list or else by selecting the right package (in this case the<br />

package java.util). A package, much like a library, is a collection of classes (the API organizes<br />

them by <strong>to</strong>pic). Th e easiest way <strong>to</strong> fi nd a class, though, is <strong>to</strong> just type the name of the class and Java<br />

(i.e., “ Java Random ” ) in<strong>to</strong> google. Th e documentation page is just about always the fi rst result.<br />

See Figure 23.2 .

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

Saved successfully!

Ooh no, something went wrong!