Category Archives: Java

NetBeans Resources

netbeans01

NetBeans is the IDE that we are using for our Java class this semester. Last semester, Eclipse was the IDE. I have actually found that NetBeans has a nicer/cleaner interface. Below are some of the resources that I have run across so far.

    Happy coding!

Java Resources

Since I am taking a Java Development course this semester, I thought I would post some of the resources that have been helping me greatly.

cup_of_java 

Bucky’s Java Tutorial – Thanks to some guys in my class for letting me know about this great set of tutorials on YouTube. They are short, concise and to the point.

Official Java Programming Documentation – Get all API docs in one place. Very helpful!

Stanford University Course – Pretty much a whole Java course on YouTube. (Source: @mkoby)

Java Boutique – Lots of tutorials, reviews and code.

Java.Net – Source for Java technology collaboration.

Sun Developer Network (SDN) – Source for Java Developers,

Java World – Solutions for Java Developers.

Java Posse – Podcast on Java technologies.

 

I would say Bucky’s Java Tutorial and the Online Documentation (API) has been the most help to me personally.

^..^

Picture found in Google Image Search pointing to http://osum.sun.com/group/javaparatodos

Generating Getters and Setters in Eclipse

I am taking Software Development with Java this semester, so not only am I learning a new language, but a new IDE. Eclipse is one of the most popular of the Java Integrated Development Environments.

eclipse_ide

There is a nice feature in Eclipse that saves a lot typing. It is the Generate Getters and Setters… option on the Source menu.

In the lab we did in class last week there were three main variables.

GenGettersAndSetters1-Eclipse 

 

In Eclipse, go to the Source menu and select Generate Getters and Setters…

GenGettersAndSetters-Eclipse

 

In the Getters and Setters dialog, select which fields you want to create the getter/setter for. In this case, I want all three, so I click the [Select All] button and then click [ok].

GenGettersAndSetters3-Eclipse

 

Magically, all of the getters and setter code is generated for you.

GenGettersAndSetters4-Eclipse

 Java Listing on GitHub

This works well for straight forward variables. I’m sure it is not the best approach for more advanced situations, but it sure saves a lot of typing.Whew

^..^

Follow

Get every new post delivered to your Inbox.