Results 1 to 6 of 6

Thread: Hey, I'm new

  1. #1
    bobrenjc93 is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default Hey, I'm new

    Last year I took a computer programming class, half of the year we learned visual basic and the other half we learned JAVA. After that half a year of JAVA, I learned so much, from if statements, all the way to action listeners and GUI's. We used Jcreator at school, and it seems like everything was updated and installed. When I tried to install Jcreator on my computer, I had to download a bunch of classes(keyboard class... etc) and JDK's(supposedly something that allows you to run the program)? I was so confused and ended up uninstalling it from frustration. So can anyone give me a list of what I should download and where I should save the files?

    ALSO: If you think there is a better IDE that's easier and less hassle please post that too=) thanks.

    NOTE: I am running vista

    Also it would be nice to know how you learned JAVA and what IDE's you used.

  2. #2
    ojn
    ojn is offline Senior Member
    Join Date
    Aug 2008
    Location
    Stockholm, Sweden
    Posts
    119
    Rep Power
    0

    Default

    Get the JDK (available from Sun's site). It's got all you need, the JRE, compiler etc. As for custom classes, of course you need to download those if they're not part of the API. But if you just want to use the Keyboard class (why on earth do schools insist on teaching that crap?), use Java's own Scanner class instead.

    As for IDE's to use, there's a sticky thread that'll hopefully help you out.

  3. #3
    Loop is offline Member
    Join Date
    Sep 2008
    Posts
    36
    Rep Power
    0

    Default

    Hey, welcome to the forum! Enjoy your stay.

  4. #4
    bobrenjc93 is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default Scanner?

    How do u use the scanner thing?

  5. #5
    ojn
    ojn is offline Senior Member
    Join Date
    Aug 2008
    Location
    Stockholm, Sweden
    Posts
    119
    Rep Power
    0

    Default

    Class Scanner. There you go.

  6. #6
    Loop is offline Member
    Join Date
    Sep 2008
    Posts
    36
    Rep Power
    0

    Default

    import java.util.*;

    public class TestScanner
    {
    public static void main(String[]args)
    {
    Scanner kb = new Scanner(System.in);

    System.out.println("Put in a value");

    int inputValue = kb.nextInt();

    System.out.println("\nHere's the value: \t"+ inputValue);
    }
    }

    I think that should get you started.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •