Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How can start programming with Java?

3 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    Well, for a start, you will need 3 things:

    1) Java virtual machine (which you most likley already have)

    2) Java software development kit (Java SDK), here is the latest version: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/...

    3) An IDE, I recommand Eclipse, simply download (its in a zip file) and run the eclipse.exe, no need to install anything

    Once you install everything, run eclipse and lets make a hello world program:

    1) File -> New -> Application Client Project

    2) Project Name: Hello World

    3) Finish

    4) In the project explorer find Hello world and go to the

    "appclientModule" folder, which is where your source files will be located

    5) Go to the default package and open Main.Java

    6) Put the following code in there:

    public class Main {

         public static void main(String[] args) {

              System.out.println("Hello World!");

         }

    }

    7) Hit the play button (or Ctrl+F11)

    If everything whant as it should the console window should have printed:

    Hello World!

    Congratulations! You are all set to explorer the wonderful world of Java!

    Further reading

    Sun's Java Tutorial - http://java.sun.com/docs/books/tutorial/

    Java Tutorial (Tons of examples) - http://www.java2s.com/Tutorial/Java/CatalogJava.ht...

  • Anonymous
    1 decade ago

    Java is a great language to learn. You will need an IDE (Integrated Development Environment). I suggest the latest version of netbeans. Also you will probably need this website. http://java.sun.com/docs/books/tutorial/ It is put out by the creators of the Java programming language and has some great information in it.

  • 1 decade ago

    For the IDE get Netbeans. It's on the Java website. How to learn? Go download a ebook on Java for dummies or something like that or buy a book from a book store.

Still have questions? Get your answers by asking now.