New Posts  All Forums:Forum Nav:

Java Noob

post #1 of 12
Thread Starter 
Hi
I really want to star programming as i have alot of free time due to hours being cut back at work and thought i would use the hours in a productive way.
I have always wanted to learn a language but never had time and when i did i never knew where to look, so ive decided to ask for help.

My questions are:

Where do i start?

What software am i going to need?

Is java the most useful language if i wanted to write maybe a small internet game?

Also Is there any useful links that will help me alot and get me on the road to start learning java.

I have google'd it but i end up looking through hundreds of web pages and then the one's that look promising, end up having some sort of fee.

Thanks to Any Replys!!!
post #2 of 12
If your serious about it, go out and grab a few books on Java development. They will get you started with a few simple hello world apps. Then it should teach you the basics of integers, doubles, strings, arrays, etc...

After that you'll probably start learning the basics of classes and inheritance. At this point you should have the basics to make a very simplistic text based game.

If your looking into graphical games you'll want to get a book or 2 on java based GUI's and graphical programming.

I'd say java is a good place to start but if you want to learn "real" programming I'd go with c++.

Edit: As for an IDE, i find BlueJ to be very simplistic. Along with that you'd need the Java SDK.

Also, don't get a "For dummies" book, grab something like Accelerated Java
Edited by CovertCover - 1/3/11 at 4:48pm
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
post #3 of 12
To start you need JDK (Java Develpment Kit) installer, and notepad to start programming

I highly recommend start by following a textbook (go buy one, anyone with lots of exercises will do), because it is easy reference and has exercises behind each chapter. There is a ton to learn before you can actually anything useful so you have to be patient.

Once you get comfortable with writing a bit of code (say a hundred lines) start using an IDE (integrated development enviromnent) such has NetBeans or Eclipse (No more notepad). They'll help you to write your code more effiencly and give you a easier time to debug. They'll take awhile to get use to but it is worth it.

If you want to write a small internet game, you can start with java applets, because you can direclty apply your Java knowledge to it. Flash games uses ActionScripts, which is different from Java, but the fundamentals you learn from Java will help you a lot.

so to summrize:
Get a book -> do lots of excerises -> Learn to use IDE -> fly away

if you dont commit yourself you aint gonna do it properly, becaues programming absolutly needs time and practice, more than anything else.

ps. C and C++ tend to be more dry than Java, Java is fine place to start. All languages are somewhat similar to one another, so if you learn one, you should be able to learn another very fast
post #4 of 12
Thread Starter 
Ok this is great thanks for help!

What do i do when i have the JDK i dont know what it does lol (noob)
post #5 of 12
Quote:
Originally Posted by Joerama;11879256 
Ok this is great thanks for help!

What do i do when i have the JDK i dont know what it does lol (noob)

Thats why you need to read and follow a book!

You use it compile and run your programs. If you dont use an IDE you need to do it old school in command prompt.

so go get a book NAOW~!

--Java website should have some basic tutorials you can follow for the very very basic stuff, if you really want to start right now
Edited by Captain Han - 1/3/11 at 5:07pm
post #6 of 12
Instead of using a text based and command line way of programming (though that is sometthing that EVERYONE who starts should know how to do) i suggest downloading BlueJ as your developement enviorment. It's practically the same as using notepad, but it offers some syntax highlight and UML diagrams. That or notepad++. After that your good to start coding thumb.gif
Edited by CovertCover - 1/3/11 at 5:11pm
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
post #7 of 12
Thread Starter 
ok so i registerd to the java site and got the jdk. i dont have any new icons or anything and not sure where it has gone.
What should i get in the download?
post #8 of 12
It should install somewhere like: C:\Program Files\Java\jdk1.6.0_21

Thats your %JAVA_HOME%
you'll want to make sure %JAVA_HOME%\bin is in your path

then the executable %JAVA_HOME%\bin\javac compiles your java file
and %JAVA_HOME%\bin\java runs your .class file
water damage
(7 items)
 
  
CPUMotherboardGraphicsRAM
2600k 4.5Ghz Asus p8p67 deluxe evga gtx980ti classified SLI 16G ddr3 1600 
Hard DriveOSMonitor
Samsung 850pro x2 Windows 7 Seiki sm40unp 
  hide details  
Reply
water damage
(7 items)
 
  
CPUMotherboardGraphicsRAM
2600k 4.5Ghz Asus p8p67 deluxe evga gtx980ti classified SLI 16G ddr3 1600 
Hard DriveOSMonitor
Samsung 850pro x2 Windows 7 Seiki sm40unp 
  hide details  
Reply
post #9 of 12
^ is right, but this is exactly why I said you need to download BlueJ

You don't need to mess with using Notepad, you don't need to mess with compiling through the command line.

Plus is auto-detects which version of the SDK you currently have installed. You can do all of your programming / testing straight from BlueJ. It's EXTREMELY easy to use (easier than notepad) and it's very straightforward.

Edit: Also, you didn't really need to register for the java site to download the SDK haha tongue.gif

Also, In the download you will receive all of the standard Java packages, classes, functions, etc... (Essentially everything you need to make a functional program, you DO NOT receive anywhere to code [I.E. why you see no icon on your desktop], just a code compiler and basic classes.)
Edited by CovertCover - 1/3/11 at 5:56pm
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
post #10 of 12
Thread Starter 
ok cool i compailed it on cmd but i dont know what im going to use it for.
I followed a video and i have then downloaded eclipse and this has a compiler on it so im wondering why i downloaded java?

Thanks for all replys i shall + rep you all who have helped
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming