Best way to learn the basics of Java?
#1 Members - Reputation: 100
Posted 08 September 2011 - 11:48 AM
#3 Members - Reputation: 100
Posted 08 September 2011 - 12:34 PM
#4 Members - Reputation: 155
Posted 08 September 2011 - 01:19 PM
There are many books that cover the topic. Java for Dummies(432 pages) and Head first Java(688) are really good picks for beginner and easy to follow or if these do not suit you, you could pick something else.
When learning with book and if the book has examples, be sure to complete them. In addition, making up your own problems that apply the concepts you learned is a great way too.
#5 Members - Reputation: 135
Posted 08 September 2011 - 04:05 PM
Find people in the class and get copies of the assignment questions. Do them as well. Then find someone who got a high mark on the assignments and compare your results.
Do more than the assignments and examples. I agree with HNikolas, you really start to learn the concepts when you apply them to your own ideas.
Hopefully with the textbook you are going to learn the same material as people in class. You should see about arranging a deal to potocopy someone's notes for a fee if you want to verify this.
Because you are new to programming, it might not seem easy, but being an introductory class, you can take to heart that they shouldn't be going crazy into high design or all out OOP right off the bat and it will be easy.
"How do people learn to program?"
Ever broken a problem down into smaller parts to solve indivdually and put them together for the final solution? Congratulations, you know how to program. The rest is all syntax, containers and algorithms.
#6 Members - Reputation: 100
Posted 08 September 2011 - 06:09 PM
#7 Staff - Reputation: 8892
Posted 08 September 2011 - 06:39 PM
Don't worry about having to look things up at first, that's perfectly normal, and even experienced programmers still rely on references sometimes. You'll find that as you get more practice and experience you will remember more and more and won't have to look up the simpler stuff.
Do all the practice problems you can get your hand on, and get feedback on your solutions -- find out if there are different ways you could have solved the problem, and what the strengths and weaknesses of the different approaches are. Try changing things and seeing what happens. Cause errors on purpose and learn to look up the error messages -- you'll probably also get familiar with some of the common errors.
Practice, practice, practice.
- Jason Astle-Adams.
From my blog: 20 ways to advertise your game | What next? Intermediate to advanced C++
How to make games WITHOUT programming | 4 reasons you aren't a successful indie developer
#8 Members - Reputation: 100
Posted 08 September 2011 - 07:41 PM
#9 Members - Reputation: 135
Posted 09 September 2011 - 12:52 AM
You cannot program if you do not know how to use variables, branching, looping, console I/O etc. they are simple and they are the basics but you can't really do anything in a program until you know what those things are and how to implement them in whatever language you are working in. Once you've learned these ideas in one language, moving to another it really does just become a case of similar yet newish syntax.
#10 Crossbones+ - Reputation: 1329
Posted 09 September 2011 - 01:59 AM
You don't know how to program. The point of introductory programming classes is to teach you how program. It isn't about Java or the syntax of Java -- the language doesn't really matter. The introductory classes are the most important ones.
#11 Members - Reputation: 1410
Posted 09 September 2011 - 03:59 AM
#12 Members - Reputation: 152
Posted 09 September 2011 - 12:34 PM
I'm a CS major and we're required to take an introductory Java course first semester. I signed up late and the course is full, so I have to attempt to test out next semester if I don't want to be a semester behind. My friend who took the test told me if you could program, you would be fine. I've been reading from my textbook and the java tutorials at Oracle. I copy code into my compiler and try to understand what each line does. I attempt to write my own code, but I usually have to look at examples to get the syntax right. If I continue this for an hour or two each day all semester will I be okay? Any suggestions?
When I read the phrase, "the best way to learn," it tells me that you're convinced that there is some kind of "canonical" method for learning a programming language like Java. I'll save you the trouble of searching for one--there isn't such a thing. If you want to be a writer, then you need to write. If you want to be a runner, then you need to run. Similarly, if you want to be a programmer, then you need to program. Program what? Anything. A programmer can't help but program. If just thinking of learning a new programming language doesn't get you all worked up and excited and ready to crank out code all night long, then you may want to rethink your area of study.
#13 Members - Reputation: 100
Posted 09 September 2011 - 02:03 PM
#14 Members - Reputation: 155
Posted 10 September 2011 - 01:03 AM
If you want to skip ahead and see how a simple game is made, then I suggest you to google basic java game tutorials, there are many on the WWW, some better then the others.
Some phrases to google:
game loop AND java
basic game tutorial AND java
2d game tutorial AND java
I think that writing simple games to learn a language, especially an OOP one, is another great way of doing it, so I will list few game frameworks.
Some of these frameworks will get months of work off your shoulders:
JGame (great and very easy framework)
GTGE
Slick2D
Shaven Puppy Game Library
Basilisk Game Library
#15 Members - Reputation: 136
Posted 10 September 2011 - 01:49 AM
It's impossible to fully digest what your reading and studying without experience, and likewise, it's hard to gain good experience without first studying. What works best is probably an iterative approach: study, then experiment and play, then study again, then experiment, then study again that stuff you studied the first time, play around with what you're learning some more, etc.
#16 Members - Reputation: 460
Posted 10 September 2011 - 04:52 AM
#17 Members - Reputation: 100
Posted 10 September 2011 - 03:50 PM






