444Views25Replies

Author Options:

Best way to learn JAVA? Answered

I already know a very small smidge(really not enough to say "know". More like I can read a Java program's source, and understand the difference between the methods, the classes, etc. and how they are used.)However, I don't know enough to write my own. I have a couple of books(Java for Dummies, and Sams Teach Yourself Java in 24 Hours), but they haven't really been much help to this point. Does anyone else know of a good book for learning Java?

Discussions

0
user
andy

7 years ago

I thoroughly recommend BlueJ as a learning tool. We used it in university and looking back it was very good as a teaching tool. BlueJ is an IDE and they also publish a book which is part instruction manual part text book.

The book covers the fundamentals of the java language from the ground up, and the IDE has an "object bench" - a graphical representation of the objects which you can interact with. All in all an innovative and useful project to the learner.

For the programmers among us who haven't heard of it I recommend you have a download and play around - it isn't an enterprise level tool by any stretch of the imagination (last time I looked the features were a bit sparse) but it is excellent for teaching.

Drew

Take a class - teachers exist for a reason.

Can't read the question, eh? Does anyone else know of a good book for learning Java?

I thoroughly recommend BlueJ as a learning tool. We used it in university and looking back it was very good as a teaching tool. BlueJ is an IDE and they also publish a book which is part instruction manual part text book.

The book covers the fundamentals of the java language from the ground up, and the IDE has an "object bench" - a graphical representation of the objects which you can interact with. All in all an innovative and useful project to the learner.

For the programmers among us who haven't heard of it I recommend you have a download and play around - it isn't an enterprise level tool by any stretch of the imagination (last time I looked the features were a bit sparse) but it is excellent for teaching.

Drew

Drew, you might want to repost this at the top level, so the original author is more likely to see it.

Thank you. I'd rather not take a class online. And I don't know of any place local that teaches programming of any kind(Baton Rouge area of Louisiana).

I'm 15. I'd rather put off going to college until I'm 18. And besides, I'm going to SouthEastern anyway :) But thanks for the input!

You can take individual CC courses without enrolling in a degree program, and you can do so before you're 18. Some school districts have cooperative agreements so that you can even get elective credit toward graduation. And having college courses on your HS transcript looks good :-) At least you know you have options.

Thanks for the help. I actually did a "programming and visual arts" program at BRCC over the summer a couple years ago. Sadly, they covered Game Maker. It's a great way to get your feet wet in the world of programming, however they barely touched on GML(Game Maker Language), when I knew about 100x as much of it as was taught there. Thanks again for the information.

Ah, yes. I've taken more than a few courses where I knew more than the syllabus :-( Sorry for that. Good luck!

That is unfortunate. :(

You might be able to find someone who knows java and pay them a nominal fee to teach you. Teaching usually works a lot bettter then books, just because they can help you with problems you have where a book is static.

Are you JAVA enabled? That would make a big difference in using a book like Teach yourself Java in 24 hours.

What do you mean by "JAVA enabled"? Does my computer run JAVA things, the JAVA JDK, NetBeans, etc.? Yes, otherwise there would be no point to me learning Java. Also, while I'm on the subject, I'm having some trouble working something out. I'm trying to make an application that will get the system's info, and write it to a text area for use in later development. I'm doing this via "System.getProperties()". I can make it put the information in the output area of NetBeans with "System.getProperties().list(System.out)" but how can I make it write to a text area named "infoArea"? Also, can you give an example of specifying a particular piece of the output? I know the syntax is "System.getProperty(String key)" but when I try "System.getProperty(os.name)" I get an error that it's trying to find the variable "os". Sorry if this is a bit out of line, but it's the best place I can think of for asking such a question. Thanks for the help :)

I meant, can you compile JAVA programs on your computer?

It has been a LONG time since I dealt with JAVA, I was only self taught and didn't use it much. I got more use out of scripting, especially since I could not compile at home, only at work. And Jscript didn't need compiling.

Ya, I can compile it through the command prompt or a batch file.

I don't think my machine has a JAVA compiler that I know of.

What are your specs? If you download the JDK, you can do it simply. This is what my batch files to do it look like. after the "cd" change that path to wherever the .java file you want to compile is. Then set the variable "path" to the bin of your JDK install(mine was jdk1.6.0_21\bin). "javac <.java file>" compiles the .java file into a .class file. And finally, "java " runs the class file. Sorry if that didn't make much sense, I'm not very good at explaining things. But you can find a better example through Google :)

@echo off
title Project Name Example
color 04
echo Compiling file...

cd C:\Documents and Settings\Drews Computer\My Documents\NetBeansProjects\First_Project\src

set path=%path%;C:\Program Files\Java\jdk1.6.0_21\bin

javac File_Example.java
echo Running file...
java File_Example
:eof

Thanks, I will check...but if JDK is a paid for product, I probably don't have it, mainly because I am unable to afford what my wife calls "luxury toys" LOL

Lol. Nope, it's free from Oracle :) http://www.oracle.com/technetwork/java/javase/downloads/index.html

Thank you, I will DEFINITELY check into that. I have wanted to get back into programming again anyways, and I have an arsenal of books to help me with that....

It sounds like you don't need yet another book, just some problems to solve. All the information you'll need is in those two books you have, you just need to find and practice that information.

I'd recommend googling something like "object oriented programming problems" or "java programming practice". Start simple and build up.