How do I search the downloaded Java? Platform, Standard Edition 6 API?

I am a newbie to Java (I had done some limited programming in C ++ years ago). I have downloaded the Java? Platform, Standard Edition 6 API Specification, and can view this in my Firefox browser. How can I search to certain classes in this documentation easily? For instance, if I want to ding out all of the operations available for String or System.out, etc, , is there a way that I can type in System.out, or String somewhere, and get a list of what is available?
Thanks

Brian_Rohan wrote:
Here is the code that I compiled and it worked:Yeah, "args" there isn't part of the API. It's the name of the variable that is the first parameter to the main method defined there.
The stuff between the parentheses is a list of declarations of local variables that form the parameter list to that method, to put it technically.
The thing that's part of the API is the class String. In "String[] args", the bit on the left is the type of the variable, and the bit on the right is name of the variable. A name of something you define like that wouldn't be in the API. However, the name of the class String is.
If you look at the import statements, you'll see if the name "String" is actually shorthand for a class defined elsewhere. There's this:
import java.util.*;So you can know that "String" is either defined in the java.util package, in the "helloworld" package (which also wouldn't be in the API because you're defining in there using the package keyword), or in java.lang. (The "java.lang" package is automatically imported.)
You could look in the API docs for java.util.String or java.lang.String to find the class definition. But I'll save you the time by letting you know that it's actually java.lang.String.
Again I am new at this, what would args.length be?You'll see that the type of the "args" variable is "String[]". That means that it's an array of String objects. (The [] means arrays.) Arrays all have a field called "length". This also is part of the language, not the API, so it would be in a language guide, not the API.
The value of args.length would depend on how you ran your program. When you run a program on the command line like this:
java HelloWorldor this:
java HelloWorld foo bar bazThe java virtual machine takes all the things after the class name and sticks them in an array of String. Then it looks for a static method named "main" in the HelloWorld class, and passes it that array. So in the first case above, args.length would be zero, and in the second case it would be three.
By the way, when you post code, please wrap it in code tags. Highlight it, then click the "CODE" button above the text input box.
Edited by: paulcw on Nov 4, 2009 6:35 PM

Similar Messages

  • Java? Platform, Standard Edition 6 API Specification in PDF or Word format

    I found this help documentation about Java classes on this address http://java.sun.com/javase/6/docs/api/. Can I find the same documentation but in format I can look while I'm not connected on the internet (like PDF or word documents)?
    Thanks.
    P.S. - Sorry if this is posted in the wrong section

    Here you go:
    [Java SE 6 API Doc. Download|https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u10-docs-oth-JPR@CDS-CDS_Developer]
    doc. installation instructions: [http://java.sun.com/javase/6/webnotes/install/jdk/install-docs.html]
    Found on this page: [http://java.sun.com/javase/downloads/index.jsp]
    (html version though)

  • How to get the download for Adobe Digital Editions to work on PC?

    How to I get the download for Adobe Digital Editions to work on my PC?
    3-4 tries today on Adobe website and no results.

    If you are on Vista, see the announcement at the top of the forum,
    which points to http://helpx.adobe.com/digital-editions/kb/installing-digital-editions -20-windows.html
    Try an older version (1.7.2) of ADE, especially if you are on XP.
    Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.
    http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editio ns.html
    also for PC at http://www.tucows.com/preview/853736/Adobe-Digital-Edition-For-EBooks

  • Setting Java Version Standard Edition 6

    Java Platform Standard Edition 6
    Version 1.6.0 (build 1.0.0_02-b06)
    # Page displayed to Netscape users to allow them to download Oracle JInitiator.
    # Oracle JInitiator is used with Windows clients.
    # If you create your own page, you should set this parameter to point to it.
    jinit_download_page=/forms/jinitiator/us/jinit_download.htm
    # Parameter related to the version of JInitiator
    jinit_classid=clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF
    # Parameter related to the version of JInitiator
    jinit_exename=jinit.exe#Version=1,3,1,22
    # Parameter related to the version of JInitiator
    jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    #jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=0
    any body can explain me which parameter change / registry & any other changes to convert new version use?

    any body can help me Plz.

  • Unable to install Java 2 Standard Edition (J2SE) 5.0 Release 4

    After Downloading Java 2 Standard Edition (J2SE) 5.0 Release 4
    my desktop computer won't recognize the .dmg formatt and this is the messege i get: The following image/disk failed to mount j2Se50Relese4.dmg i have MAC OSX 10.4.6 on a Dual 2 Ghz PowerPC G5. I also have StuffIT expander and it won't recognize it either.

    Actually. No, all the problems i've been having has happened with any java downloads with the .dmg formatt all other applications where succefully unstuff.
    Your answer is unclear. Can you mount other disk images by double-clicking on their .dmg files? Have you repaired permissions with Disk Utility?
    I wonder if it has something to be with the versions of the upgrade. do i need to download them in an expecific order or something?
    It depends. Some updates won't be applicable until you install a previous one. For example, some Security Updates won't work unless you an OS update in place.
    i currently have install java 1.3.1 plug in and 1.4.2 plug in. i've never open the application thought.
    If you mean the Java Plugin Settings.apps for those versions, then that's normal. I have those in addition to the Java Preferences.app from J2SE 5, which I believe is the new name for the settings.app.

  • How can I hide the downloads window?

    Hi,
    When I download a file the downloads window opens on top of the page I'm viewing. I have to then close it or move it to carry on working on that page. I then go to save another file off the page and the downloads window opens up over the page again. This is flippin' annoying when you're researching and downloading a number of documents off hte same page.
    How can I stop the downloads window opening on top when I download files?
    Any advice much appreciated :-)
    Many thanks!
    Evan

    There is a way, but it may not be supported for ever... If you want the old download manager back, go to about:config, click the I'll be careful, I promise! button. Then search for "download", and set the browser.download.useToolkitUI preference to true (double-click it).

  • How may one cancel the download of an update that was started by having actuated the "Check for Updates" button in the "About Firefox" window, please?

    How may one cancel the download of an update that was started by having actuated the "Check for Updates" button in the "About Firefox" window, please? If possible please cover all platforms, Mac, Windows, Linux, although the first mentioned is what currently applies to my circumstances.
    Thank you.

    Such a download is usually saved in an updates or updated folder in the Firefox program/application folder.
    You can delete this folder to cancel the download.
    If files already have been downloaded then remove the files in the updates and updates\0 folder.
    *http://kb.mozillazine.org/Updates_reported_when_running_newest_version
    *http://kb.mozillazine.org/Software_Update
    Mac: /Applications/Firefox.app/updates "/path_to/Firefox.app/Updated.app"
    Linux: "/path_to/firefox/updated"
    Windows: C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates

  • I lost connection with the server while downloading  an audio book how do I restart the download without paying again?

    I lost connection with the server while downloading  an audio book how do I restart the download without paying again?

    Go into the App Store, tap Updates, and at the top should appear Purchases. Hit the tab that says "Not on this iPhone" to download again

  • I mistakenly asked iTunes to download a TV series and I can't get it to stop trying to download it.   how do I kill the download?

    I mistakenly asked iTunes to download a TV series and I can't get it to stop trying to download it.   how do I kill the download?

    You've got to be freakin' kidding me. I'm in Brazil, I accidentally started a 2.2GB download that it says will take 592 minutes to download, and there's no way I can stop it and download something else until that first download finishes? I would have thought it was unthinkable 15 years ago that anyone would build an app that downloads things but doesn't allow the option of canceling the download, but in this day and age? So much for Apple making intuitive, user-friendly products.

  • How do I clear the downloads folder?

    How do I clear the downloads folder?  I swear there used to be an option for this when I right clicked on the downloads folder that is on my bottom bar but I don't see one now.  This is making me crazy.
    Also, when I click on the bottom bar Downloads folder to display the items in the Downloads folder, I've selected it to be arranged as a fan and by the date added.  I've downloaded two copies of the same item and did this back to back because I didn't see the first download in the folder once I'd downloaded it.  I don't see the first of the two downloads unless I open the whole folder in its own window.  Shouldn't I see them both at the bottom of the list since they are the two most recent downloads?  I'd accidentally downloaded duplicate copies previously and it had displayed them in this manner.
    Please help!

    The best way to delete is just open them in finder.  Mark them all and delete.
    In the fan, you can select the sort order by right click (cntl click) the download folder and choosing "sort by" date added.
    Regards,
    Captfred

  • How do I block the download option on photos in my iWeb site?

    I am an artist and have posted lots of photos of my art in my iWeb site.  I am dismayed to see a download link show up when I click on the photos in my live site!  How do I block the download option on my photos?

    see this recent thread:
    https://discussions.apple.com/message/15262697

  • 1. How can we search the Forum to see if a question has already been asked? 2. Can I send a Web Page and not just its Link?

    1. How can we search the Forum to see if a question has already been asked? Search goes back to Help and out of the Forum.
    2. Can I send a Web Page and not just its Link? Explorer allows it.

    1. How can we search the Forum to see if a question has already been asked? Search goes back to Help and out of the Forum.
    2. Can I send a Web Page and not just its Link? Explorer allows it.

  • How do I get the download window in iTunes 11?

    Hi there,
    Back in the iTunes 10 days (ie last week) there was an option for a download windowin the sidebar that popped up when you were downloading things - eg podcasts from the iTunes Store. If you clicked on it you got a new window showing what you were currently downloading or what was in the queue to be downloaded. This doesn't seem to appear in iTunes 11 - is there a setting that I can change to get this back?
    When you are downloading over 10 podcasts each day it is helpful to leave it on that list so you have an idea of what is coming through the feeds, and possibly delete a few episodes from an ongoing subscription if they didn't sound interesting. Now it seems that you have to hover by your PC to see what comes up at the top of the screen, which is a bit stupid.
    Any clues on how I can get the download page back, or whether there is some alternative way you can look at a list of recently downloaded podcasts by date (other than by looking at the "unplayed" list - I've got over 600 unplayed episodes).
    I suspect that this may  be a really stupid question with a really simple answer. Please, let me have it - I'm stumped!
    Any suggestions welcomed.
    Cheers, TF

    I found this article with the explanation on how to find this again.  In the upper right corner of itunes (only when an item is downloading) you will see a downward facing arrow inside a gray circle with a blue status bar type line below it.  If you click that it will show you your downloads progress.
    Link: http://www.cultofmac.com/204589/find-the-download-manager-again-in-itunes-11-os- x-tips/

  • How do I get the downloaded music on my iphone to my new home pc and itunes, it took the info from the 1st device but not the 2nd

    how do I get the downloaded music on my iphone to my new home pc and itunes, it took the info from the 1st device but not the 2nd

    the appletv will not display your movies in folders.
    you could change the tags in itunes to include the genre in the "show" field in the "video" tab. this would replicate the view you want, but you will need to tag all your movies to do this.

  • I purchased the newest software update for my ipod touch 1st generation and it is saying it is it will now begin download but the status bar doesn't even appear? How can I start the download?

    I purchased the newest software update for my ipod touch 1st generation and it is saying it is it will now begin download but the status bar doesn't even appear? How can I start the download?

    Well first off you shouldn't have had to pay for a download (just an assumption from the word "purchased".
    If you are trying to install iOS 5 on your iPod touch, it won't work they arent compatible. I suggest checking what version of software you are trying to install and posting it in this forum so people can have a better understanding.

Maybe you are looking for

  • Using DBMS_DATAPUMP with LONG data type

    I've got a procedure below that calls the DBMS_DATAPUMP procedure using a REMOTE_LINK to move a schema from one database to another. However, a couple of the tables within that schema have columns with the LONG data type. And when I run it I get an e

  • My phone is on SILENT how do I get it off!!!

    Hi everyone, Just bought my new Nokia 1208 Mobile phone today and have received 2 phone calls which I didnt get because the phone is stuck on SILENT MODE.   Can anyone tell me how to get it off.  It says LOUD on the display which is what I set it to

  • XMII v12 - JRA Action Blocks Question

    We are implementing v12 (AIX) and require ECC server load balancing for our production environment. Production environment we have multiple xMII servers and multiple ECC servers. (our development environment is standalone, single xMII server, single

  • With out install JVM

    I am Working with java Swings,my application schould run with out installing JVM by the user(own). my program schould check either the user has the JVM or not. If JVM is not install program must inform to user like this...your system dont support wit

  • "Other" in my devices keep growing, what can I do?

    It has been just half a month since I bought iPad and the yellow "Other" is more than 1GB now. And it's growing every time syncing to iTunes. What can I do without reinstall the system?