"Hi, Amigo!"

"I can teach you my special skill: avoiding unnecessary work."

"Hmm. I like how this is starting."

"Remember, it's impossible to know everything. And it's not necessary. But, if you can quickly find the information you need, then you're golden."

"Java is growing so quickly, because Java programmers use each other's work. The Internet has millions of Java libraries that are well written, debugged, documented, and license free. Use them."

"There are hundreds of websites for programmers, where more experienced programmers help beginners and those who are less experienced. Use them."

"Anything you may want to write, somebody else has already written. Well, maybe not everything, but 90-95 percent, for sure."

"Whoa."

"I want you to always remember two things:"

1. Programming started over 50 years ago. Java is almost 20 years old.

99% of the code you need has already been written.

2. Before you write anything from scratch, search the Internet. Most likely, someone has needed it before and already solved the problem.

"So, we're going to learn how to 'google', i.e. search the Internet. As you might have guessed, 'googling' involves using the Google search engine."

"Other search engines will work too. But because programming is evolving most rapidly in Silicon Valley, Google will be our tool of choice."

"I will give you tasks where you need to find something using Google, so you'll have to learn how to search for things."

"But for now, we'll just start with some examples."

What we want to know Google query Note
In Java, how do I check whether a file exists? java file exists The very first link has the answer.
Answer:
File f = new File(filePathString);
if(f.exists())
{ /* do something */ }
In Java, how do I download a file from the Internet? java file download The very first link has an example.
Answer:
URL website = new URL("http://www.website.com/information.asp");
ReadableByteChannel rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream("information.html");
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
How much is $100 in rubles? 100 dollar in RUB You don't even need to click a link for this answer!
Answer:
3 270.21812 Russian rubles
How do I figure out which JDK version is installed? how to get jdk version The second link.
Answer:
C:\>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

"Don't be lazy. Go to Google, enter those queries, and find the answers."

"We're learning how to find answers in seconds rather than hours, and sometimes weeks. Which can happen."

"Wow. I promise I won't be lazy."

"An experienced developer can use the Internet to find an answer or a clue for 99.99% of all problems that may arise."

"Whoa!" I'm going to always listen carefully to what you have to say!"