How can I create arrays through the same recursive process?

Hello again!
I want to create some arrays with names like array1, array2, array3 etc
through the same for loop.
Do you know how this can be done? Thanks!
for (int i = 0; i < 32; i++) {
byte[] array???=new byte[400];
}

I want to create some arrays with names like array1,
array2, array3 etc
through the same for loop.
Do you know how this can be done? Thanks!
for (int i = 0; i < 32; i++) {
byte[] array???=new byte[400]; You cannot create new names during runtime (array1, array2 are names).
You can create a map that associates Strings with byte arrays though:Map<String, byte[]>  map= new HashMap<String, byte[]>();
for (int i= 0; i < 32; i++)
   map.put("array"+i, new byte[400]);
// get array associated with array26:
int j= 26;
byte[] oneOfTheArrays= map.get("array"+j);kind regards,
Jos

Similar Messages

  • I have a MacBook and created a slideshow on IPhoto. I made copies (discs) of the slideshow and they did not come out well...how can I create discs with the same quality as the original?

    I created an IPhoto slideshow.... the quality was wonderful on my MacBook and through my projector. I was told to export to my desktop and create copies via IDVD. I did that and the copies are terrible quality. 1. How to I make a copy to look exactly like the original and 2. I do I save as a backup should my Mac crash? Please.... this took a long time to create and I really need help. Thanks!

    Why is there no iDVD on my new Mac? How do I get it and how do I install it?
    https://discussions.apple.com/docs/DOC-3673

  • I have an itunes account in Euro. I received iTunes and AppStore Gift Cards in $US. How can I use these on the same iWhatever?

    I have an itunes account in Euro. I received iTunes and AppStore Gift Cards in $US. How can I use these on the same iWhatever and keep together music/apps bought in the 2 currencies?
    Thx

    Barbara Hunt wrote:
    Would it be possible for me to download iTunes in Parallels and get the files into that and then onto my iPod?
    Yes, you can download iTunes for Windows using Parallels. If planning on making purchases here and/or authorizing already purchased tracks (from your Mac iTunes library), you are permitted to authorize five (5) computers as per iTunes Store terms of use, regardless of computing platform. No need to create a separate new iTunes Store account.
    However, judging from what you would like to do, your best bet would be to convert the WMAs to AAC/MP3 in iTunes-Windows (iTunes-Mac cannot import WMA files), and drag the files from the Parallels window to your desktop to add to the iTunes-Mac library. (as the iPod itself is currently linked to your iTunes-Mac library)
    Hope this helps,
    Steve

  • HT5622 I own three Apple devices, but my iPad remained associated with my old email address and password. How can I register it with the same new email and password?

    I own three Apple devices, but my iPad remained associated with my old email address and password. How can I register it with the same new email and password?

    If you updated your existing account then try logging out of it on the iPad by tapping on the id in Settings > Store and then log back in and see if that 'refreshes' the account on the iPad. If you created a new account then any content that you purchased/downloaded via the old account will remain tied to that old account, and only that old account can download updates to its apps.

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • How can i share photos on the same mac but different users?

    how can i share photos on the same mac but different users? we have different iphoto acounts and just want to be able to look under users in the finder and view another users iphoto.

    You may try moving ur librarie to the folder /Users/shared if and link it to iphoto from there
    You may locate and link libraries from arkiv-->change library in iphoto

  • I have 2 accounts in my family and would like to purchase some of the same songs for both accounts, however when I try to purchase a duplicate song from the second account the song says play instead of purchase. How can I get some of the same songs?

    I have 2 accounts in my family and would like to purchase some of the same songs for both accounts, however when I try to purchase a duplicate song from the second account the song says play instead of purchase. How can I get some of the same songs?

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • How can I create cursors within the cursor?

    How can I create cursors within the cursor?
    Table1 2001 - 2007 data
    Account_no
    Account_eff_dt
    No_account_holder
    Num
    Seq_Num
    Value1
    Value2
    Table2_Historical (doesn't have Num as a field) 1990 - 2000 data
    Account_no
    Account_eff_dt
    No_account_holder
    Seq_Num
    Value1
    Value2
    Table3_06
    Account_no
    Account_eff_dt
    No_account_holder
    Num
    My result table should be:
    Table_result_06
    Account_no
    Account_eff_dt
    No_account_holder
    Num
    Value1_min (the minimum value for the minimum of record_sequence)
    Value2_max (the maximum value for the maximum of record_sequence)
    I have to get data from Table1 and Table2_Historical. If one account was open in 1998 and is still effective, the minimum value of that account is in the Table2_Historical.
    Let's say I open a cursor:
    cursor_first is
    select * from table3_06;
    open csr_first
    loop
    fetch cursor_first into
    v_Account_no
    v_Account_eff_dt
    v_No_account_holder
    v_Num
    EXIT WHEN csr_first%NOTFOUND;
    How can I open a second cursor from here that will get the Seq_Num from Table1
    csr_second
    select Seq_Num from Table1 where
    v_Account_no = Account_no
    v_Account_eff_dt <= Account_eff_dt
    v_No_account_holder=No_account_holder
    v_Num = Num
    How does it works???
    Thanks a lot

    Thanks so much for replying back. Here is what I am trying to do.
    I have to create a table for each year 2002, 2003, 2004, 2005, 2006 that has all the account numbers that are active each year plus some other characteristics.
    Let’s say I will create Table_result_06. This table will have the following fields. The account number, account effective date, Number of the account holder and the field Num (The primary key is a combination of all 4 fields), the beginning look of value 1 in 2006, the last look of value 1 in 2006.
    Table_result_06
    Account_no key
    Account_eff_dt key
    No_account_holder key
    Num key
    Value1_min (the minimum value for the minimum of record_sequence)
    Value2_max (the maximum value for the maximum of record_sequence)
    All the active account numbers with the Account_eff_dt, No_account_holder and Num are in the Table3. As such I can build a query that connects Table3 with table Table1 on all 4 fileds, Account_no, Account_eff_dt, No_account_holder, Num and find the Value1_min for the min of req_sequence in 2006 and Value1_max for the max of req_sequence in 2006. Here my problem starts.
    Table 1 doesn’t have a new entry if nothing has changed in the account. So if this account was open in 1993 and nothing has changed I don’t have an entry in 2006 but this doesn’t mean that this account doesn’t exist in 2006. So to find the minimum value I have to go back in 1993 and find the max and min for that year and that will be max and min in 2006 as well.
    As such I have to go to Table_2 historical and search for min and max. But this table doesn’t have the field NUM and if I match only on the Account_no, Account_eff_dt and No_account_holder I don’t get a unique record.
    So how can I connect all three tables, Table 1 for max and min, if it doesn’t find anything will go to table 2 find the two values and populate Table_result_06.
    Thanks so much again for your hep,

  • How do I create in Illustrator the same effect of 'color burn' in Photoshop?

    How do I create in Illustrator the same effect of 'color burn' in Photoshop? I am trying to create a rainbow effect by bleding the colors but need this in Illustrator.

    Thanks! I found it! Thats what I needed!
    Serena Finn
    303.919.5239
    [email protected]
    finndesignshop.com

  • How can I merge folder with the same name so that the content does not replace the other

    How can I merge folder with the same name so that the content does not replace the other?

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • I want to do banners ,how can we do  when click the same button (next button)  it must show differen

    i want to do banners ,how can we do  when click the same button (next button)  it must show different images . cam any one help

    Check out my blog with samples on Edgehero.
    http://www.edgehero.com/articles/interactivity

  • How do I create a column the same size?

    How do I create a column the same size?
    I'm concatenating up to 6 cols into one col. If one of the column has a space it will shrink it (I used varchar2 and char) .
    e.g: col1= '123456', col2= ' ', col3= ' ',col4= ' 123', col5=' 51',....etc
    I want to see them as :colx= '123456', ' ', ' ',' 123',' 51'
    Thanks for your help.

    You are alomost right,:-)
    since OP said :If one of the column has a space it will shrink it (I used varchar2 and char) .
    So you should use replace function not trim function.
    test >  select  replace(' a b c ',' ') from dual
      2  /
    REP
    abc
    test >  select trim(' a b c ') from dual;
    TRIM(
    a b c

  • How can i Create Domain in the Weblogic 7.0

    hi !..........
    how can i create Domain in weblogic server 7.0 plz send the replay ASAP..
    thanks in advance
    From
    Sree

    Go to the directory:
    %BEA_HOME%\weblogic700\common\bin
    Start the batch or shell named as dmwiz.cmd / dmwiz.sh
    This should be able to launch a wizard and take you through the process.
    Thanks and regards,
    Paz

  • I created a slideshow but all the photos are now mixed up. i just dragged the event to a new slideshow. how can i get them into the same order they were imported in?

    my slides are all mixed up after i imported them into a new slideshow. i just copied them from the events and dragged the icon to the new slideshow but the have re arranged themselves into a random order. I want them to play in the order i took them and copied them . How can i do this please. am working with iOS 7 on my iMac using iPhoto latest version.

    Processor  2,8 GHz Intel Core i54, GB 1333 MHz DDR3,ATI Radeon HD 5750 1024 MB,OSX 10.9.5 (13F34), im using iphoto version 9.5.1. which has been updated.. im using iOS  mavericks iMac
    Model Name: iMac
      Model Identifier: iMac11,3
      Processor Name: Intel Core
      Processor Speed: 2,8 GHz
      Number of Processors: 1
      Total Number of Cores: 4
      L2 Cache (per Core): 256 KB
      L3 Cache: 8 MB
      Memory: 4 GB
      Processor In

  • How can I do to have the same contacts in all my devices, pc, iPad and iMac?

    I have severl devices and the last taime I updated my contacts was almos manually. I would Like to be able to have the same contacts in all, pc, iPad, and iMac.
    How can I set it so to get it done through iCloud?
    For instance in my pc ( windows 7 Home Premium ) I use Outlook 2007.
    Thanks for any comment on this.

    switching on iCloud should automatically tell it to merge data with that device and icloud. i'm on a mac but its gotta be the same on all devices and systems.
    when you switch on icloud for Contacts on a PC, it will tell you its merging all contacts with icloud...

Maybe you are looking for

  • How to connect Satellite 1800-400 on TV?

    Hi I want to connect my Toshiba Satellite 1800/400 to my TV, but i dont know how to install a secondary video adapter. My graficscard is a Trident Video Accelerator Cyberblade Ai1. PLEASE help because i am getting hopeless and frustrated because i ne

  • Multiple Key Bindings

    Hello, I have a Edit -> Delete menu item. I have set an acclerator Ctrl+D on it. I want to detect the "Delete" key as well and be able to invoke the Edit-> Delete functionality. Is it possible? I have looked into the documentation which explains abou

  • Why won't my Facebook app open ?

    I have a iPhone 4 and after I updated my Facebook app and now when I tap on it the app will open but not load and just go black and take me back to the home screen. I tired hard rebooting it and also uninstalling the app and download again please hel

  • Help! Why is my 12" White iBook screen Black?

    Help! When I turned on my iBook, the White apple appeared center screen, then the screen became whitish gray. Thinking the operating system was lost, I erroneously tried a Pismo trick. I turned it off, then rebooted while holding down the X key. It h

  • Migration on new Mac

    Hallo, after migration from MBP {Mountain Lion} to iMac {Mountain Lion} Aperture doesn't work. It was written you need reinstall Aperture. I have key number, but I can't downolad trial version, doesn't exist. Please may I find some link of Aperture t