Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Understand Java Theory, but need advice on were to go now

Understand Java Theory, but need advice on were to go now
Thread Tools
Junior Member
Join Date: May 2002
Location: Australia
Status: Offline
Reply With Quote
Aug 28, 2002, 04:05 AM
 
I have been readying Thingking in Java and have understood the very basic concepts of Java OOP. However the example code in Thingking in Java is very contrived, and I need to see real Java code.

The question what is the best way to practically do my first real Java. I have been looking for some simple Java code that I could play with for a Swing or CL app, but I have only found some heavy duty opensource code, that is way beyond my ability to work with.

Or should I start with JSP and Beans with Tomcat?

If you have some comments I would interest in what you have to say.

Are their any good books that teach Java by example starting with a simple application, and building on the basic code?
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Aug 28, 2002, 10:17 PM
 
write a simple game that picks a random number from 0 to 100. The user picks a number. The game tells them if they are too high or too low until they get it right.

Your choice for how to implement.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Senior User
Join Date: Feb 2001
Location: Rochester, uk
Status: Offline
Reply With Quote
Aug 29, 2002, 05:39 AM
 
There are lots of good books out there. I learned from Java Gently, but I've heard a lot of people recommend O'Reilly's Learning Java as a good guide.

http://www.oreilly.com/catalog/learnjava2/

But as the Detritus said, sometimes the best way to learn is to make it up as you go along. Just start writing something you want to write, and let the language learning follow. And don't be afraid to write things that are gonna get thrown away!
All words are lies. Including these ones.
     
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Aug 29, 2002, 11:49 AM
 
I always like playing around with graphics to learn a new language. Something like writing a program that generates the Mandelbrot set is a good way to start, IMHO
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status: Offline
Reply With Quote
Aug 29, 2002, 12:26 PM
 
goto java.sun.com and look for their tutorials. There is tons of sample code and training guides.
     
dogwood  (op)
Junior Member
Join Date: May 2002
Location: Australia
Status: Offline
Reply With Quote
Aug 29, 2002, 09:08 PM
 
I have just started using the java.sun site. I have started by creating my first program, Just a sort of Mad Hatter Program that takes all these little applications I find like a temp converter + a clock + calculator and creates and improves it in a tab view, hope to get a whole bunch of these mini apps together and play with Java Concepts in my small application.

--------------
But as the Detritus said, sometimes the best way to learn is to make it up as you go along. Just start writing something you want to write, and let the language learning follow. And don't be afraid to write things that are gonna get thrown away!
--------------

And well that is what I am doing, I think leanring a new language like Java by ourself, can be very intimidating, not knowing were to go and start.

Start expecting my Java questions soon.
     
Junior Member
Join Date: Sep 2000
Status: Offline
Reply With Quote
Aug 30, 2002, 08:34 AM
 
Originally posted by dogwood:
[B]I have been readying Thingking in Java and have understood the very basic concepts of Java OOP. However the example code in Thingking in Java is very contrived, and I need to see real Java code.
If you want to get your head around OO first, I'd avoid the distractions of GUI's for a while and write a Java App to model something. You could try a car hire company, a Theater booking app or something. Model the problem in question, create the classes and make them all worktogether well.

Then you can add a Database back end (mySQL + JDBC?) for storage, and last of all consider a GUI - JSP/Servlet or Swing.

This way you'll be able to concentrate on the modelling and get a good seperation between model, view and controller. You'll also be able to write the GUI without debugging the back end (as it will be working by then).
Nobody made a greater mistake than
he who did nothing because he could only
do a little. Edmund Burke
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2