

Text class
for (String word : getWords()) { ... }
int, String, WordList


<h1>Welcome to my
page!<h1> to denote styles, fonts, colors, etc.<a
href="http://horstmann.com/index.html">Click me!</a><img
src="http://horstmann.com/cay_rowing.gif">new Text(), drag to
worldvoid load(String
source)"http://horstmann.com/index.html". Be
sure to include the ""exploreText object. We can analyze it in
the usual way.WebText1
that collects all hyperlinks. hrefnew WebText1(), drag
to worldact act method contains the following code, which runs
your method and puts the result into the world
public void act()
{
load("http://horstmann.com/index.html")
WordList words = getLinks();
words.addToWorld(this);
}
}
explore
href="..."substring method to clean up the string.
str = str.substring(6);
")str to the word list.
Now what happens?" to worry aboutint n = str.length();
str = str.substring(6, n - 1);


Cay Horstmann into Google. Whoa! Google number 1Jeff Smith (another professor in the CS department).
What is his Google number?
horstmann.com)GET /index.html

w00z1e”w00z1e. Give me this page.”

