Sunday, September 21, 2014

Using "The Java Tutorials" Right

As I mentioned in my Pilot post, I took one (1) semester of Java in college. As a result, I knew the basic syntax of the language and most of the basic concepts, up to and including classes.

So, when I initially tried to use The Java Tutorials from Oracle, Java's developers, I found them repetitive, boring, and not-useful. This was my own fault.

I have recently made a few discoveries, upon returning to The Java Tutorials. The first of these concerns the world "trail." On each tutorial page, there are "previous" and "next" links that take you to earlier/later pages in the tutorial. In between these, there is a "trail" link. The "trail" link takes you to an overview of the tutorial, which is actually super important and useful because the left nav bar only links you to other pages within the same general topic area. So, this "trail" page was the missing link. I've now been able to locate the exact point where my class left off, which was just prior to dealing with "nested classes".

As the name suggests, nested classes are "classes within classes." That's right. Class-ception. Call up Leonardo DiCaprio and Joseph Gordon Levitt. And Ellen Page. Definitely call up Ellen Page.

Nested classes include static nested classes and non-static nested classes, which are also known as inner classes. These have been tripping me up as I try to make my first few apps, giving me weird errors about static-ness and non-static-ness and stuff. So hopefully, I'll learn some things today that will serve me well in days to come.

This post doesn't seem like much, but if you're trying to spot-learn Java from those tutorials, I probably just saved you some serious headache. So do like your mother taught you, and say thank you!

No comments:

Post a Comment