What is this array doing

Hi Guys,
Can someone explain to me what the following array is doing:
aClass[] arr = new aClass[20];
for(int i=0; i<20; i++) {
     arr[i] = new aClass();
}

Thanks for the reply guys. So the array elements hold only references to objects.
So, just say I have a method called getName() in the aClass class, if I wanted to get the name from that method in one of my array elments would I do something like this:
String name = arr[5].getName;So thus getting the name and placing it into a string reference called name, correct?
Edited by: shaolinf on May 11, 2008 7:00 AM
Edited by: shaolinf on May 11, 2008 7:00 AM

Similar Messages

  • What is this array..don't understand..

    i know int[] is integer array, i know boolean array i know string array
    but i got an example
    and it says something like
    CD[] collection = new CD[100]
    something like that..what is this what is CD[]
    i know int, boolean, String arrays...but..what is this array.....
    i think array only can contain primitive types..can't they???
    we can name any array? anything?? just like abc[] array, bullshit[] array
    book[] array? any name ????

    uh, aren't you a java expert? :)
    CD[] is an array type which is just another type in the java language. In front of the braces you place the type that you are going to store in your array, which can be a primitive type, but it could also be an object. So yes, bullshit[] is possible, if you have a class called bullshit.

  • When ever I reboot my device, I get an error message that says, "runtime error info.plist not found". What is this, how does it effect my ipod and how do I correct this error?

    I have an ipod touch 64gb. Lately, I discovered an error message on the lockscreen that says "Runtime Error Info.plist not found". What is this, will it effect my ipod, how does it effect my ipod and how do I correct the error? (I see the error message when I power up my ipod and when I reboot).

    Follow  this article:
    How to restart the Apple Mobile Device Service (AMDS) on Windows

  • Can anybodt tell me..what ITOB_SERIALNO_MODIFY_SINGLE this FM does do?

    Hi All,
    Can anybody tell me what,ITOB_SERIALNO_MODIFY_SINGLE this FM exatly does do?
    IF possible plz exaplin the parameters which need to pass to this...(if possible sample cod also)
    It's very urgent...
    Thnx in advance.

    Hi Sanjay,
    here is the documentation for the FM mentioned below
    ITOB_SERIALNO_MODIFY_SINGLE
    FU ITOB_SERIALNO_MODIFY_SINGLE
    Short text
    ITOB Buffer RFC: Change Individual Serial Number
    Functionality
    This RFC-capable function module enables you to change master data for an individual serial number without using a dialog.
    Notes
    General notes for the RFCs for processing individual technical objects (function group ITO3):
    The master data is communicated in an interface structure (based on view ITOB) that is generally used for technical objects.
    Each RFC returns the processed data in the structure E_OBJECT_REC to the the caller, independent of the action that is to be performed (create/change/read).
    An RFC for creating or changing master data generally receives this data in the structure E_OBJECT_REC. However, depending on the object to be processed, only part of the data is processed, namely:
    Create functional location: Processes data from structure ITOBAPI_CREATE_FL
    Change functional location: Processes data from structure ITOBAPI_MODIFY_FL
    Create equipment: Processes data from structure ITOBAPI_CREATE_EQ
    Change equipment: Processes data from structure ITOBAPI_MODIFY_EQ
    You specify whether an authorization check should be performed when executing the create or change transaction using the optional parameter I_AUTH_TCODE (default: without check).
    You specify whether the data should updated using the optional parameter I_POST_BUFFER (default: update data).
    You specify whether the (updated) data is written to the database per Commit using the optional parameter I_COMMIT_WORK (default: no Commit).
    In Customizing (Field Selection) for master data dialogs, entries defined as manadatory are generally not checked by the RFCs.
    Special notes on function module ITOB_SERIALNO_MODIFY_SINGLE:
    The parameter I_TRANSFER_MODE controls whether inheritance-relevant fields should be transferred to installed pieces of equipment.
    The system uses the structure I_OBJECT_REC_OLD to make 'Before Image' data available to the user. If the structure is not transferred, the 'Before Image' is read by the module.
    Please go through the documentation and hope that you will able to resolve how the FM works out.
    Thanks
    Venugopal
    Please reward for the ample info.

  • Com.apple.iokit.IOStorageFamily - What is this file doing ?

    Hi am getting a lot of those lately:
    Kernel version:
    Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
    panic(cpu 0 caller 0xFFFF0003): 0x300 - Data access
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x00095718 0x00095C30 0x0002683C 0x000A8384 0x000ABD00
    Proceeding back via exception chain:
    Exception state (sv=0x20F0E280)
    PC=0x003095B8; MSR=0x00009030; DAR=0x54BB8000; DSISR=0x40000000; LR=0x000DB0AC; R1=0x0CFE3320; XCP=0x0000000C (0x300 - Data access)
    Backtrace:
    0x004993A8 0x000DAFDC 0x0022012C 0x0021D560 0x0021CB0C 0x00227584
    0x00227A60 0x000FB5AC 0x000E2524 0x000E20B8 0x000F4F84 0x000ED468 0x000ED828 0x002AABD4
    0x000ABEB0 0xFFFFFFFF
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.iokit.IOStorageFamily(1.5)@0x495000
    Exception state (sv=0x2DD23A00)
    PC=0x90001CAC; MSR=0x0200F030; DAR=0xE0F0D000; DSISR=0x42000000; LR=0x9042E8E8; R1=0xBFFFED40; XCP=0x00000030 (0xC00 - System call)
    Now as you can see the only file mentioned is the com.apple.iokit.IOStorageFamily , is this file indicating that there is something wrong with the Harddisk or its driver/firmware ???
    What is the com.apple.iokit.IOStorageFamily doing ?
    I am not asking for a solution I just want to know what my computer is complaining about.
    I have a ibook g4 1.2 GHz 12", 512 Mb ram , No programs installed only Mac OSX 10.4.6 , no external devices, no peripherals, using airport.

    OS X doesnt seem to like your hard drive. I took this gem from the developer pages
    ...the I/O Kit, an object-oriented driver development framework emphasizing modularity and reusability.
    In Mac OS X, a driver for a mass storage device that mounts a file system or is bootable is a kernel
    extension, or KEXT. This KEXT inherits much of its functionality from an I/O Kit family that
    implements software abstractions common to all devices of a particular type.

  • What is this query doing???

    for(rset = conn.executeQ(OurQuery); rset.next(); items.put(rset.getString(1), rset.getString(2)));
    rset = ResultSet
    conn= Connection
    Items --> private Hashtable items;
    here is OurQuery
    OurQuery = " \t \tselect LABEL_CODE ,NVL(INITCAP(DECODE(" + lang + ",1,DESC_EN_TX,DESC_AR_TX)),'N... AVAIL') " + "\t from FORM_USER_LABEL \t\t\t\t\t\t\t" + " \twhere UPPER(FORM_ID) \t\t= UPPER('" + v_frm + "')" + " \tAND USER_ID \t\t= " + v_user;
    here is the executeQ method
    public synchronized ResultSet executeQ(String s)
    throws SQLException
    Object obj = null;
    ResultSet resultset = null;
    try
    if(conn.isClosed())
    ConnectDB();
    stmt = conn.createStatement();
    resultset = stmt.executeQuery(s);
    catch(Exception exception)
    System.out.println(exception);
    return resultset;
    }

    I can say only what the query does
    First i will spit this query into an understandable manner.
    1.select LABEL_CODE , // This selects the label code
    2.NVL(INITCAP(DECODE(" + lang + ",1,DESC_EN_TX,DESC_AR_TX)),'N... AVAIL') // The above part of the query uses three functions one is NVL,INITCAP and Decode.
    The NVL will convert when the query returns NULL to an user provided value i.e "N... AVAIL".
    The InitCAP will convert the Starting letters of each word to Upper case
    The Decode works like an if condition i.e
    Decode(value,condition,if condition is true,if condition is false)
    In your example, where decode works like
    if(lang == 1)
    DESC_EN_TX
    else
    DESC_AR_TX
    and the remaining part of the query it converts to upper case and compares with a where condition.
    if you still have doubts, first check for Decode option in oracle tutorial how it works then check the query.
    it is not necessary to keep the "\t" inside the query

  • What is this link doing here?

    Here is something weird I noticed whilst using Vimperator's hint navigation. Screenshot follows:
    Upon further investigation, it was revealed to be a link. The contained text originally had the CSS 'display' attribute set to 'none', which is why it was invisible. I disabled it for the purpose of the next screenshot:
    What is the point of this? Would it not be more sensible to include the image with a normal <img ... /> tag and then wrap it in <a>...</a>? Or am I missing something here?

    I tried to make the Arch Linux logo clickable, it is set through a CSS style not with <img>, so that was the best way I thought.
    But that caused a problem into the admin page, so I reverted the commit for the moment.
    I do not want to edit the html code because Thayer is working on a new style and, when it will be ready, we will replace only a .css file.

  • Oraclesystemuser : What exactly this user does ?

    Hi Team ,
    I have a query regarding the user ” oraclesystemuser” Please let me know what is the purpose of this user .
    I have noticed the “oraclesystemuser” is created by default when we install SOA Suite and setup the domains . Its part of the group ” oraclesysetmgroup” . I would like to know the use of the this user . I am planning to change the password of the uset “oraclesystemuser” and would like to know what are the impacts related with this to the domains and what are the areas where we need to change the password . The current SOA Suite version is 11.1.1.3.0 and OS being used is redHat Enterprise Linux .Do let me know if you need anything else ?
    What we have observed is recently we made a password change for weblogic account and we see errors related with security in BAM manage servers logs .
    <Oct 11, 2011 7:38:06 AM MDT> <Notice> <Security> <BEA-090078> <User oraclesystemuser in security realm myrealm has had 10 invalid login attempts, locking account for 5 minutes.>
    From this scenario I would say "oraclesystemuser" is being used by BAM servers and not user what is the imapct on the domain if I chanege the password for " oraclesystemuser"
    thanks,
    Kiran

    Needs Help --
    If you don't know about Terminal, I would exit it, and don't open it again.  You could do incredible damage in there, if you're not knowledgeable.

  • What is this code doing!

    public void arrowupdate(int i, int j, int k)
    weight[i][j] = k;
    int l = node[j].x - node.x;
    int i1 = node[j].y - node[i].y;
    float f = (float)Math.sqrt((float)(l * l + i1 * i1));
    dir_x[i][j] = (float)l / f;
    dir_y[i][j] = (float)i1 / f;
    if(weight[j][i] > 0)
    startpoint[i][j] = new Point((int)((float)node[i].x - 5F * dir_y[i][j]), (int)((float)node[i].y + 5F * dir_x[i][j]));
    endpt[i][j] = new Point((int)((float)node[j].x - 5F * dir_y[i][j]), (int)((float)node[j].y + 5F * dir_x[i][j]));
    } else
    startpoint[i][j] = new Point(node[i].x, node[i].y);
    endpt[i][j] = new Point(node[j].x, node[j].y);
    int j1 = (int)Math.abs(20F * dir_x[i][j]);
    int k1 = (int)Math.abs(20F * dir_y[i][j]);
    if(startpoint[i][j].x > endpt[i][j].x)
    arrow[i][j] = new Point(endpt[i][j].x + j1 + ((Math.abs(endpt[i][j].x - startpoint[i][j].x) - 2 * j1) * (100 - k)) / 100, 0);
    else
    arrow[i][j] = new Point(startpoint[i][j].x + j1 + ((Math.abs(endpt[i][j].x - startpoint[i][j].x) - 2 * j1) * k) / 100, 0);
    if(startpoint[i][j].y > endpt[i][j].y)
    arrow[i][j].y = endpt[i][j].y + k1 + ((Math.abs(endpt[i][j].y - startpoint[i][j].y) - 2 * k1) * (100 - k)) / 100;
    else
    arrow[i][j].y = startpoint[i][j].y + k1 + ((Math.abs(endpt[i][j].y - startpoint[i][j].y) - 2 * k1) * k) / 100;

    It seems to be updating / recalculating the screen coordinates of arrows.
    Parameter j is an index into the arrow array, so you could rename j as "arrowNumber" for more readability.
    K is some form of a weighting factor.
    It affects the position of the arrow, not sure if it's to do with size, position or rotation.
    regards,
    Owen

  • What's This Help not working for one entry in each header file

    I have a large RoboHelp project that I have imported into Version 8 from a previous version. Prior to the import into Version 8, all of the What's This Help in the project was working perfectly; now, post-import, I have a problem.
    Firstly, some background information.
    My project contains a large number of individual header (.H) files, one for each dialog within the software. These header files, which have been generated and provided by our developers, contain one entry for each field on the dialog to which the header file relates. The header files are all contained within a \HTML Topics\Fields\ folder (going from the root of my Help project).
    Each header file has a corresponding text (.TXT) file. These text files contain entries that correspond to the entries in the relevant header file. The text files are also contained within the \HTML Topics\Fields\ folder.
    Below is an example of the contents of a header file:
    #define IDH_HIERARCHY_APPEARANCE_HIEARCHY_LIST          16811
    #define IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE         16812    
    #define IDH_HIERARCHY_APPEARANCE_REMOVE_APPEARANCE      16813
    Below is the contents of the corresponding text file:
    .topic IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE
    Click this button to add a new row of hierarchical appearance settings to the grid.
    .topic IDH_HIERARCHY_APPEARANCE_HIEARCHY_LIST
    Use this grid to define hierarchy appearance settings. Each row in the grid represents a level of the hierarchy. For example, the appearance settings you define for the first row apply to the top level of hierarchy, the settings you define for the second row apply to the second level, and so on.
    .topic IDH_HIERARCHY_APPEARANCE_REMOVE_APPEARANCE
    Click this button to delete the selected row of hierarchical appearance settings from the grid.
    The What's This Help that was part of the original project still works perfectly. However, after upgrading the project to RoboHelp Version 8, I have had to update the project to reflect changes to the software. As part of this work, I have imported some new header files and updated some existing ones - and edited the corresponding text files accordingly.
    The What's This Help that is covered by the header files that I have imported since the upgrade to RoboHelp Version 8 does not work correctly; in each case, the What's This Help does not work for whichever field appears at the top of the appropriate text file. The position of the entry in the corresponding header file does not make a difference.
    If I manually edit a text file to move a different entry to the top then recompile the Help project, the What's This Help does not work for the field that now appears at the top of the text file - and the What's This Help for the field that used to appear at the top of the text file now works.
    I've tried everything I can think of to fix this, but nothing has worked. It seems as if there is a problem in the way RoboHelp is compiling the header and text files.
    If I use Microsoft HTML Help Workshop to decompile the CHM file, then view the contents of the resulting, decompiled text files, the affected files appear as follows:
    .topic IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE
    Click this button to add a new row of hierarchical appearance settings to the grid.
    .topic 16811
    Use this grid to define hierarchy appearance settings. Each row in the grid represents a level of the hierarchy. For example, the appearance settings you define for the first row apply to the top level of hierarchy, the settings you define for the second row apply
    to the second level, and so on.
    .topic 16813
    Click this button to delete the selected row of hierarchical appearance settings from the grid.
    Note how the entry at the top - which relates to the What's This Help that doesn't work - appears differently to the other entries which do work. The name of the ID appears after ".topic" rather than the appropriate ID number.
    Any help that anyone can provide me with would be very much appreciated.
    Thank you,
    Mark

    Its working now. We just kept trying to reinstall the tools and restarting indesign. On the 4th time the buttons started working. I can't explain why it finally worked, just that it is working now.

  • I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I downloaded Blue Fire Reader and it requested an adobe id. I clicked on the link that was in the error message stated http//adeactivateadobe.com. Found out that if the date and time on my Ipad is wrong that it won't let me download a book. I was off 5 hours. I reset my clock settings and adobe id let me download a book from the library. I am back to using Overdrive and adobe again on my ipad.
    Thank you.

  • I am trying to connect Garritan Personal Symphony to Logic Express and Garageband. A dialog box pops up and asks for plugin Garritan-P. Where do I find it and what do I do with it. I can't locate this plugin doing searches on any of the porgrams.

    I am trying to connect Garritan Personal Symphony to Logic Express and Garageband. A dialog box pops up and asks for plugin Garritan-P. Where do I find it and what do I do with it. I can't locate this plugin doing searches on any of the porgrams.

    I'm not sure which version of Garritan Personal Orchestra you have or when you are getting a window pop-up, but check this link for starters:
    http://afjohnston.blogspot.com/2009/11/using-garritan-personal-orchestra-gpo.htm l

  • I updated my Iphone 3gs to 6.1.3 after that I am having this message "Your iPhone could not be activated because the activation server is temporarily unavailable." "The SIM card inserted in this iPhone does not appear to be supported"  plz help me! what s

    I updated my Iphone 3gs to 6.1.3, after that m having this message:
    "Your iPhone could not be activated because the activation server is temporarily unavailable."
    "The SIM card inserted in this iPhone does not appear to be supported"
    plz help me! what should i do now?

    You had a jailbreak and unlock.
    When you updated you cooked it.
    Your phone is done.
    Time for a new one.

  • What is this Symbol called and what does it mean?

    What is this symbol/icon called and what does it mean?  It goes away with it's "notification" and I would have no idea where to find it should I need to.
    Please.  And thank you.

    It did come from Apple as I had to deal with this.  But in speaking with another "Genius" I was trying to describe the symbol to him and never got an answer.

  • What is this icon, and what does it do?

    When you open an email and are in the read mode, at the bottom of the
    Screen, right in the middle there is an icon that looks like a box with an arrow
    Pointing into it. When I hit that, the piece of mail I am reading disappears.
    I can't find the description even in the iOS manual. What is this icon and what
    Is it doing to the mail that disappears? Occasionally I can find that email in the
    All mail folder.. But not always.. So confusing!

    I believe that is the "archive" button. You have a setting for that instead of delete. Do you see the trash can? If not, that is what it is. Here is a link to the iPhone manual and you can see about changing that, but I would have to say it is probably in settings, mail.
    http://manuals.info.apple.com/enUS/iPhone_iOS4_UserGuide.pdf

Maybe you are looking for