Should it be like this???

Hi,
When the double[], "loads", is changed in the second line, also the corresponding value in the ArrayList, "loads__", changes! Should it work like this? Seems very strange to me.
loads__.add(loads);
loads[1] = 345635;Regards,
Pingen

Pingen wrote:
Hi,
When the double[], "loads", is changed in the second line, also the corresponding value in the ArrayList, "loads__", changes! Should it work like this? Seems very strange to me.
loads__.add(loads);
loads[1] = 345635;Regards,
PingenYes, the ArrayList.add method does not create a copy of the array passed to it, but merely stores a reference to it. So you have two references (the one in the ArrayList, and your "loads" variable) referencing a single object. Any change to that object will of course be seen by both references.

Similar Messages

  • I would like an editor like this one.  Can I do this with dreamweaver?

    I want to build an editor in my site with a login editor that looks like this one.  I tried the adobeincontextediting and it won'e let me change the text size, color or insert a table.  If I can just make one like the one on this page somehow with a login I would be so happy.
    I built a site for my friend www.bigskyboxers.com and she wants to be able to edit it.  I put the adobeincontextediting in it but I can't get it to work.  Any suggestions?  Heidi 

    As far as editing tables goes... they need to be VERY strictly formatted.
    Please refer to this thread
            "Re: Editing a  Table using ICE"
    I have more information on formating tables also on this thread:
            "Re:  Cannot save the selected regions"
    Using your table, your code should look something like this:
    <table border="0" width="600" bgcolor="#FFFFCC" background="images/hearts.gif" style="height: 350px">
    <tbody ice:repeatinggroup="*">
      <tr ice:repeating="true">
        <td ice:editable="*" background="images/hearts.gif" >       <p align="center">       <img height="225" src="images/epicstack.jpg" /><br>
            OFA-Cardio Clear<br>
            Thyroid Normal</p>
          <p align="center"> <br>
          </p></td>
        <td ice:editable="*"><p align="center">       <img height="225" src="images/vindi2.jpg" /><br>
            OFA-Cardio Clear<br>
            SAS-Clear<br>
            Holter tested normal &quot;2 pvc's&quot;<br>
            Thyroid Normal<br>
        </td>
      </tr>
    </tbody>
    </table>
    I added <tbody> tag, highlghted in blue. Look over the notes on structuring tables as to why.
    That will solve your problem if you follow the guidelines I have there.
    Problems are highlighted in red. User cannot change background images that are nested. That should be done with CSS anyway.
    Also, note that I left out the table that this table is nested in... nesting tables will not allow you to do what you are trying to accomplish. You shold wrap the table in a "div" and alternatively make that <div> something like <div ice:editable "*">
    The other code on the page has repeating regions, etc, BUT NO EDITABLE REGIONS... it sould look something like this:
    <div ice:repeating="true" ice:editable="*">Content for new Repeating Region goes here</div>
    Read through the info on tables and it will help you alot. Generlly, I would say avoid them & alternatively use properly styles <div>'s instead. But if you MUST use tables, structure them as I have & they'll cooperate with you.
    Good Luck,
    -Tom

  • I have everything set for Arabic fonts and the keyboard as well. When I type in WORD or EXCEL I just get individual Arabic letters, but they never connect, they should be for example like this   الس    but they always appear like that ا ل س

    I have everything set for Arabic fonts and the keyboard as well. When I type in WORD or EXCEL I just get individual Arabic letters, but they never connect, they should be for example like this   الس    but they always appear like that ا ل س

    MS Word for Mac has never supported Arabic.  You have to use other apps.  Mellel is best, but Pages 5, TextEdit, Nisus Writer, or Open/LibreOffice should work OK.
    Sometimes you can make Word for Mac do connected Arabic if you are editing a document created with Windows Word.

  • The Best Director is STILL 8.5, further version SUCKS! Director 12 should be like this:

    Dear Adobe and All Director Users,
    I'm David Setiabudi, lecturer from Indonesia, a Macromedia Director user,
    a loyal one, has making 100 free games in www.divinekids.com
    Sample : www.divinekids.com/messiah.zip    RTS Game Strategy about Jesus
    and disciples.
    Although I own Macromedia MX 2004 ORIGINAL, cost $1200, and tried
    Adobe Director versions, for me (sorry) It's getting worse.
    These two are the major problem :
    1. First of all, the full screen system is getting worse, there always a line frame
        in Adobe Director full screen.
        In the 8.5 this simple script can help :   
        (the stage).drawRect = the desktopRectList[1]
        (the stage).rect = the desktopRectList[1]
        or other Xtras as well.
    2. The MUCH BIGGER SIZE of exe
    3. Hard compatibility for html - dcr for distribution.
       Maybe : Distribute Flash Player and Shockwave Player in ONE
    Me and many more Indonesians Director, still using 8.5. Coz further version is getting WORSE.
    No wonder Flash is more popular ever, (maybe we can ) BLAME it on the Adobe Director developers.
    If there's Director 12, I suggest it should be like this:
    1. Fix thosse three problem above
    2. Can be use on various platforms, such as Androids, mobiles, iPhone, etc
    3. Attach samples of making multiuser online chats,
       how to make a game and publish the best score IN THE WEB
       (INCLUDE the php/ XML/ whatever that should be uploaded in the web)
    I hope Director 12 is not a crap, another loser version, so I can proudly move to Director 12,
    and upgrade my version. For now, I'd rather Downgrade. Don't publish Director 12 until
    the Adobe "scientist" can make those progress. Sorry for being harsh, I just REALY CARE
    about Director future.

    Then it should be Director 13 then.
    The Director 12 is still  not satisfiying.
    Among all the 'demands' there's only the Iphone one is done.

  • My phone just has searching... up in the top left hand corner and it has been like this for 4 hours now! i am unable to make calls or texts. what should i do? It is an iphone 5 by the way

    my phone just has searching... up in the top left hand corner and it has been like this for 4 hours now! i am unable to make calls or texts. what should i do? It is an iphone 5 by the way

    Take a look at this link, http://support.apple.com/kb/TS4148

  • Im using an ipad mini and recently it started to act way wiered than i ever imagined.whenever i switch it on it would open or close apps of its choice and function without my interference.it's like auto touch.what should i do with this?

    im using an ipad mini and recently it started to act way wiered than i ever imagined.whenever i switch it on it would open or close apps of its choice and function without my interference.it's like auto touch.what should i do with this?

    That could be a hardware problem with the screen digitizer but first try these troubleshooting steps in this order:
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds). No data will be lost.
    Restore: Connect your device to iTunes on your computer, backup, and then select Restore to Factory.
    See here for more details on restore: https://support.apple.com/en-us/HT201252
    If none of these work your device may have developed a hardware problem. Contact Apple Support: http://www.apple.com/contact/

  • I updated my iPhone 4S to the new IOS 6 I like it but the problem I found the Wifi button it's not working any more it looks hidden , so what I should do to solve this issue ASAP

    I updated my iPhone 4S to the new IOS 6 I like it but the problem I found the Wifi button it's not working any more it looks hidden , so what I should do to solve this issue ASAP

    Tap Settings App > General > Reset > Reset Network Settings. See if fixed. If not, Restore Firmware with iTunes on computer. See if fixed. If not, all iPhone 4S have Warranty, make Genius reservation and take iPhone to Apple for resolution.

  • I have created a slide show for a funeral buts it is taking too long to transfer to sub (like 24 hrs  ). Is this normal or should I be doing this another way ?

    I have created a slide show for a funeral buts it is taking too long to transfer to sub (like 24 hrs  ). Is this normal or should I be doing this another way ?

    Not the only one. Though I have not retryed my installation. Here is what happen to me and please verify if you had the same (sounds like it).
    1. Installed 10.8.4 on top of 10.8.3 and install went fine.
    2. I have installed a Niffy Drive (though no SD in it) ... but did not realize potential problem you suggest.
    3. its a MBPr
    4. Boot took for every (it 40 seconds from after I logedin to system screen on 10.8.3) but after (ie on 10.8.4) took forever 10-15 minutes with a cursor in the upper left on a white/gray screen.
    5. I reinstalled to 10.8.3 and all works as before
    6. But sounds like after removing niffy dirve I should reinstall??? Ie the problem I described was the same as yours.

  • I'm getting 100s of debug.log. files on my macbook OS 10.7.5. I've never seen them before. Should I be worried? They look like this: debug.log.100100_100119.sent. Is it an encryption problem? thanks for any help!

    I'm getting 100s of debug.log. files on my macbook OS 10.7.5. I've never seen them before. Should I be worried? They look like this: debug.log.100100_100119.sent. Is it an encryption problem? thanks for any help!

    I'm getting 100s of debug.log. files on my macbook OS 10.7.5. I've never seen them before. Should I be worried? They look like this: debug.log.100100_100119.sent. Is it an encryption problem? thanks for any help!

  • HELP!  iPod not updating like this Apple product should!

    Here's the deal. My iPod's main "home" computer is elsewhere. I quit going there some months back. For the past month or so, I have been updating my iPod on my own computer by dragging files into the iPod icon in iTunes while the whole time it would show "DO NO DISCONNECT".
    I've been able to do that for quite awhile now. Last night I added the official SmackDown! vs RAW 2007 album onto my iPod then went to workout at the gym. I did NOT drop my iPod or do anything to it last night after it's last "update".
    Then last night I wanted to add/drag a song onto my iPod but it quit showing my iPod's icon on iTunes under DEVICES. I tried restarting my iPod many times an reconnecting it but no improvement. I then clicked the harddrive icon for the iPod under "My Computer" and told me it has not been formatted. I clicked format and it said something I will lose all data and I did NOT pay $200 just to get screwed over with errors like this to lose everything.
    I don't understand why my iPod won't play/update on my computer anymore all of the sudden.
    Another problem. Now when I connect the charger line (connected from my computer) into my iPod, it's not showing "Do Not Disconnect" anymore.
    I'd like to know what I could do without getting screwed over by losing loads of money on multimedia purchased on a product that (HOPEFULLY NOT) did nothing but eat away my money.
    Thanks

    ummm... okay thanks

  • Exist a Jtree node.id or something like this ?

    I would want to retrieve a node using a unique 'id', for example the absolute index (into the total nodes count)
    Is there something like this ?
    Can I add a particular property to a node ? ( for example this 'id' if it does not exist )
    Another question :
    If I want to implement a search code, this 'id' can be useful, or must I transverse the whole Jtree
    Thanks

    Hello.
    Do the following:
    1. Go to the Apple Menu at the top left of the screen
    2. Select Software Update...
    3. Install any updates that are found.
    If the Amazon issue continues after these updates, then do this:
    1. Open Safari
    2. Erase any web address you have currently showing (for example www.apple.com or www.google.com)
    3. Type in www.amazon.com
    4. That should take you directly to amazon.com
    It should look like this in your Safari::

  • I am using a mac book air 11. i made click in amazon and took me to a different place (wikimedia or something like this)

    When i made click in amazon, it showed me the below screen.
    I delete History. I did everything possible but always take me to this screen every time i make click in amazon.
    Any help is welcome.
    Thanks
       C

    Hello.
    Do the following:
    1. Go to the Apple Menu at the top left of the screen
    2. Select Software Update...
    3. Install any updates that are found.
    If the Amazon issue continues after these updates, then do this:
    1. Open Safari
    2. Erase any web address you have currently showing (for example www.apple.com or www.google.com)
    3. Type in www.amazon.com
    4. That should take you directly to amazon.com
    It should look like this in your Safari::

  • How to create a report like this.

    Userid       logintime                                                    logouttime
    367     2008-12-22 08:58:09.000          2008-12-22 10:18:02.000     
    369     2008-12-22 08:52:04.000          2008-12-22 10:18:13.000     
    371     2008-12-22 08:58:27.000          2008-12-22 10:36:24.000     
    374     2008-12-22 08:01:26.000          2008-12-22 10:17:54.000     
    375     2008-12-22 08:56:14.000          2008-12-22 10:18:16.000     
    376     2008-12-22 08:57:38.000          2008-12-22 10:17:57.000     
    463     2008-12-22 12:05:13.000          2008-12-22 13:01:39.000     
    450     2008-12-22 12:01:31.000          2008-12-22 12:14:42.000     
    from this data....i want to find how many people online each hour.
    Time      Login
    8AM         0
    9AM     5
    10AM     5
    11AM     0
    12PM     2
    01PM     0
    02PM     0
    03PM     0
    04PM     0
    05PM     0

    I don't think..both person's solution will work in this case.
    My user table data is like this.
    Userid          logintime                                  logouttime
    367              2008-12-22 08:58:09.000           2008-12-22 10:18:02.000
    369              2008-12-22 08:52:04.000           2008-12-22 10:18:13.000
    371              2008-12-22 08:58:27.000           2008-12-22 10:36:24.000
    374              2008-12-22 08:01:26.000           2008-12-22 10:17:54.000
    375              2008-12-22 08:56:14.000           2008-12-22 10:18:16.000
    376              2008-12-22 08:57:38.000           2008-12-22 10:17:57.000
    463              2008-12-22 12:05:13.000           2008-12-22 13:01:39.000
    450              2008-12-22 12:01:31.000           2008-12-22 12:14:42.000
    from this data....i want to find how many people online each hour using a report.
    Time              Login
    8AM              0
    9AM              5
    10AM            5
    11AM            0
    12PM            2
    01PM            0
    02PM            0
    03PM            0
    04PM            0
    05PM            0
    i think this is not possible using report.
    maybe i need to create a view in db from above table first and out of view should be report data...then just use report to display.
    is there a better and easy solution than above?
    nobody ever tried a report like this?.
    we need group by time function in crstal...each hour, each 30 mins, each 15 mins etc...more time features..

  • New to Apple TV - do they all crash and freeze like this?

    I have had mine for about 10 days. I have had it freeze (and do the diagnostics/restart) about 15 times.
    I am starting to get the hang of it. It seems to hate a bunch of my videos (encoded home movies mostly - used Handbrake and VisualHub's Apple TV setting). I can get it to crash 'on demand' on a few videos.
    What gives with the crashing? Can't it just choke on a video and refuse to play? Many times the crashing does not seem to be specific to a video though.
    I have tried the diagnostics - it reported that it was fine. I tried the system restore .. still having trouble. I am thinking if I restore it again I should stick to the first firmware (ie: not update). Might that help?
    Things are working better with the sync'ing now that I know that iTunes must be open - and I disabled the Windows 7 firewall rather than just poking the hole for the port Apple was requesting.
    Anyway - I am really disappointed. The iPhone remote is great, I love having my iTunes library in sync - but lack of 1080p and these crashes are driving my family crazy. I am probably gonna return it, but hoping for some ideas...

    do they all crash and freeze like this?
    No, they don't.
    Take a look at this document to see what formats are supported and how to properly convert them.
    http://support.apple.com/kb/HT1532
    This next document is very specific as to the formats that will play.
    http://support.apple.com/kb/SP19
    iTunes has the ability to convert movies to the proper format. So does Quicktime Pro. For the record, though, I have converted a number of videos using the Mac version of Handbrake and have had no issues what-so-ever playing those files.
    Message was edited by: lkrupp

  • I purchased CS5 Design Standard about 5 years ago. Now I am trying to install  second PC, but I got a message like " This serial number is not correct."  I want to know the correct serial number, but I missed my ex adobe ID because I've changed my E-mail

    I purchased CS5 Design Standard about 5 years ago. Now I am trying to install  second PC, but I got a message like " This serial number is not correct."  I want to know the correct serial number, but I missed my ex adobe ID because I've changed my E-mail address.

    It is not clear to me what your issue is with not being able to sign in to your Adobe account to find the serial number.  You should still be able to sign in and find your serial number if you registered the software.
    If your first PC is a Windows machine you might be able to extract the serial number from it using the Belarc Advisor
    http://www.belarc.com/free_download.html

Maybe you are looking for