Results 1 to 12 of 12

Thread: Java 7 SE API

  1. #1
    ras_oscar is offline Member
    Join Date
    Jun 2013
    Posts
    60
    Rep Power
    0

    Default Java 7 SE API

    I am new to Java, so please be gentle. I am a hobby programmer. 2 years ago I got a copy of C++ and wrote several programs. Now I would like to try my hand at Java. When I was doing C++ 6.0, I got a copy of the Microsoft 6 volume manual. 3 of the volumes were devoted to a function-by-function description of each class and its member functions. Is there a similar manual for the Java function library? I have a book that discusses the syntax and high level concepts, and I have found that quite useful. However, I would like to have a (electronic searchable) manual that I can browse that includes the function, parent class, required includes, mandatory and optional arguements, and a short working example. I understand I can get input from members of this forum, but feel most comfortable "doing my homework" before clogging up the forum with beginner questions.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Java 7 SE API

    This is the first result for googling "Java 7 SE API".

    Java Platform SE 7
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Java 7 SE API

    Quote Originally Posted by KevinWorkman View Post
    This is the first result for googling "Java 7 SE API".

    Java Platform SE 7
    That, and Google is the search engine. If you search for "Java 7 ClassName", 99/100 times the first hit is the javadoc page. Example:

    search: java 7 bigdecimal
    first hit: BigDecimal (Java Platform SE 7 )

    But if you want to know what classes are in the JDK, having a link to the root of the javadocs is equally useful.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Java 7 SE API

    Quote Originally Posted by gimbal2 View Post
    That, and Google is the search engine. If you search for "Java 7 ClassName", 99/100 times the first hit is the javadoc page. Example:

    search: java 7 bigdecimal
    first hit: BigDecimal (Java Platform SE 7 )

    But if you want to know what classes are in the JDK, having a link to the root of the javadocs is equally useful.
    Another useful google trick is "how to use XYZ", since a lot of Java's tutorials (especially Swing) are set up that way. For example:

    Search: java how to use buttons
    First result: How to Use Buttons, Check Boxes, and Radio Buttons (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Java 7 SE API

    Yeah Google is awesome. Arguably one of your better friends and thus one that shouldn't be ignored, ever.

  6. #6
    ras_oscar is offline Member
    Join Date
    Jun 2013
    Posts
    60
    Rep Power
    0

    Default Re: Java 7 SE API

    OK, Thanks. I'll bookmark the javadocs file for future reference. Is there a way to copy this resource offline to my hard drive? i occasionally travel and would like to code in places where the internet is not avvailable (like 20,000 feet) I went to 3 different bookstores and was supposed there are so few printed books available. I guess everything is now available on the net, especially programming stuff!!!

    Another note; I was having difficulty using readLine, and noticed on the javadocs reference in the first reply that it is depreciated. Does anyone know why it was discontinued? The javadoc said that the function doesn't convert to text properly. Seems strange that they'd discontinue the function instead of fixing it if it is broken.

  7. #7
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Java 7 SE API

    You can download the API here: Java SE Development Kit Documentation 7

    You should also have a src.zip file in your JDK folder, which you can link to your IDE for in-editor documentation.

    What exact readLine() method are you referring to?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. #8
    ras_oscar is offline Member
    Join Date
    Jun 2013
    Posts
    60
    Rep Power
    0

    Default Re: Java 7 SE API

    //this one
    //I get a compiler null pointer assignment error on the readLine command.
    //'m trying to read the keyboard

    package hello.world;

    import java.io.Console;

    public class HelloWorld {
    public static void main(String[] args) {
    Console cnsl=null;
    String name=null;
    cnsl = System.console();
    System.out.println("Hello, World");
    System.out.println("Enter your name");

    while (name == null){
    System.out.println("one");
    name = cnsl.readLine("Name: ");
    System.out.println("two");
    }
    System.out.println("Hi there," + name );
    System.out.println("Is there anybody out there?");
    }

    }

  9. #9
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Java 7 SE API

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  10. #10
    ras_oscar is offline Member
    Join Date
    Jun 2013
    Posts
    60
    Rep Power
    0

    Default Re: Java 7 SE API

    "You should also have a src.zip file in your JDK folder, which you can link to your IDE for in-editor documentation"

    I downloaded and installed a single package from Sun that contained Java SE 7 and Netbeans. I looked in my jdk folder but did not see the zip file you mentioned. Perhaps the autoinstaller puts it someplace else. How do I access it in Netbeans? I have found built in documentation on the IDE but not on Java itself.

  11. #11
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Java 7 SE API

    Quote Originally Posted by ras_oscar View Post
    "You should also have a src.zip file in your JDK folder, which you can link to your IDE for in-editor documentation"

    I downloaded and installed a single package from Sun that contained Java SE 7 and Netbeans. I looked in my jdk folder but did not see the zip file you mentioned. Perhaps the autoinstaller puts it someplace else. How do I access it in Netbeans? I have found built in documentation on the IDE but not on Java itself.
    To be honest I'm not totally sure how the Netbeans package is setup. I use the JDK without Netbeans, which gives me a src.zip inside my jdk1.7.0_25 directory. I doubt the installer would put it somewhere else, but I've never used the Netbeans package before.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  12. #12
    ras_oscar is offline Member
    Join Date
    Jun 2013
    Posts
    60
    Rep Power
    0

    Default Re: Java 7 SE API

    ok, i downloaded the api docs and they are now available offline. Not as elegant as an in environment reference, but hey, it works.

Posting Permissions

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