View Full Version : Java help?!?
CiNiMoDZA
08-08-2007, 01:12 PM
Hey guys, Im looking at starting to learn Java!!! At the moment, I have absolutely no clue on how to do anything!!! Ive downloaded all the Dev mags and Im gonna do the little tutorial thing in there! Where is the best place to get tutorials!!!
Ive downloaded NetBeans and Im busy getting JDK, is there anything else Im gonna have to get before I can start?
Insomniac
08-08-2007, 04:37 PM
Cool dude, well with Netbeans you should be sorted with what you need.
I haven't done any online tuts for java as I learnt what I know from uni notes but the mecca for anyone doing java is java.sun.com
They have some tuts and stuff there you can try.
Oh and a really useful link any java programmer should know is http://java.sun.com/j2se/1.5.0/docs/api/index.html
it's the documentation for the J2SE API and is really useful when you wanna look something up :)
Otherwise just jump in, java is a pretty easy language to get into and has some really neat features. Oh and a warning, when doing Input rather use the Scanner class to do it instead of the standard way, cos standard java IO is a royal pain in the arse :P
Good luck!
CiNiMoDZA
10-08-2007, 02:44 PM
Ok, Im stuck!!! I cant find a good tutorial for Netbeans anywhere!?! Please can someone place a link to some tuts?!? Please!
Insomniac
10-08-2007, 05:25 PM
Umm why are you searching for tutorials on Netbeans? Remember that Netbeans is just an IDE(Integrated Developer Enviroment) and you want to look for tuts on Java, not the "tool" Netbeans.
dINGLE
14-08-2007, 12:03 PM
You can also look at some of the examples that come with JDK.
They are in the directory where you installed it somewhere.
They aren't comprehensive, but should have some simple ones to start off on.
Flint
15-08-2007, 07:23 PM
As mentioned above, NetBeans is simply an IDE, in other words an environment in which to write your programs. It is quite intuitive, but should you need a bit of help you can try the tutorials that are included with it (open up the help system and search for tutorial).
To learn the java language itself, there is simply no better resource than the official Java tutorial (http://java.sun.com/docs/books/tutorial/). It will give you absolutely everything you need from beginner all the way up to really advanced stuff. It is set out in a logical sequence taking you through everything step by step, and if this is your first foray into programming languages I highly suggest you stick to that sequence. Once you are done there you will have a better idea of where to go next.
Good luck and have fun :)
CiNiMoDZA
15-08-2007, 09:45 PM
Cool, Ill have a look at those tutorials! The problem Im having is all the tutorials are telling me to edit text file and then renaming it to a .java file! Nothing on using netbeans!!! But Ill check out those tuts! Thanks!
dislekcia
15-08-2007, 10:28 PM
Yay! WB Flint :)
I hereby win "Bring a friend to the forums day" even though I'm days late.
And Cinimod, you do know that you can totally just edit text files, save them as *.java and then compile them? That's it. Nothing else fancy required unless you want it. If you're having issues with Netbeans, ignore it.
-D
Banlam
15-08-2007, 10:55 PM
GUI in NetBeans is awesome! Well compared to how we were taught to do it in school anyway. I learnt Java using school books, and that's just the way I like to learn. It gave you step by step examples and exercises for you to do.
Whenever they tell you to type a program in a text file then change it to a java file, you can just type the code in NetBeans instead and save it as a java file.
Flint
16-08-2007, 10:05 AM
Yay! WB Flint
I hereby win "Bring a friend to the forums day" even though I'm days late.
Yeah, someone give this man a noddy badge :) Now someone tell the admins to stop resetting the darn forums so I don't have to reregister every time I visit :p
Cool, Ill have a look at those tutorials! The problem Im having is all the tutorials are telling me to edit text file and then renaming it to a .java file! Nothing on using netbeans!!! But Ill check out those tuts! Thanks!
Code files in most languages are just text documents with a different extension. Creating a new "Hello World" project in NetBeans will provide you with at least one java file (probably called HelloWorld.java" that will have some example code. You can start entering the tutorial code samples there.
I am a little bit rusty in creating new projects in NetBeans, but it should be as simple as File->New Project->Hello World. Resist the temptation to start working on graphical stuff until you know the language, you will be doing yourself a favor in the long run.
Once you have your project, you should just be able to build and run it it by clicking on the appropriate button in the toolbar.
Flint
16-08-2007, 10:09 AM
Doh! I haven't even hit ten replies and I'm already double posting. It's the stupid internet's fault! Bad intawebs!
Miktar
16-08-2007, 01:10 PM
Yeah, someone give this man a noddy badge :) Now someone tell the admins to stop resetting the darn forums so I don't have to reregister every time I visit :p
As was mentioned in both the magazine and elsewhere on the forums - you won't have to worry about a reset ever again. :)
Flint
16-08-2007, 02:57 PM
I have never been in any danger of being part of the "mainstream" or "popular culture" banner, thanks
Hehe, lets hope so, or a lot of people will be quoting you in their complaints :p
Powered by vBulletin® Version 4.2.4 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.