How  could i get my array to do this?

how could i get my array to print out in this format
1 A B C D
2 A B C D
3 A B C D
4 A B C D
5 A B C D
6 A B C D
7 A B C D
i tried this in a small function
public void showArray()
        char[][] temp= new char[7][4];
        for (int i=0; i<array.length;i++)
            for(int j=0;j< array.length; j++)
temp[i][j]=array[i][j];
System.out.println( temp[i][j]);

public static void printArray(char[][] array)
   for (int i=0; i<array.length; i++)
      System.out.print(i +1 + " "); //print the row number + 1, then a space
      for (int j=0; j<array.length; j++)
System.out.print(array[i][j] + " "); //print the value at row i and column j, then a space
System.out.println(); //print a new line
}Edited by: chickenmeister on Nov 11, 2008 9:47 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How can i get a array from a JSP ?

    Hi all,
    i have a STORED PROCEDURE like this:
    static public void getMyArray(double [] xx) {
    for (int i=0; i<myarr.length;i++){
    myarr=3.145*i;
    xx=myarr;
    return ;
    how can i get the array with XSQL and transform with a XSL ?
    Is this at all possible?
    Thanks for any help.
    Achim

    u r asking how ca u get array from jsp?
    and u r asking xsql ...some stuff i couldnot understand .can u repeat the question properly?
    null

  • I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID and  accound now my husband can see all the text I send and I get everything he gets how could I get his phone out of my accound

    I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID and  accound now my husband can see all the text I send and I get everything he gets how could I get his phone out of my accound

    Mishijos3 wrote:
    I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID ...
    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • How could i get the selected node in the JTree

    getLastSelectedPathComponent() �returns the parent node of currenr selected, so how could I get the selected node itself in the JTree
    I will appretiate for any help!

    i think you can get by....
    TreePath treePath = tree.getSelectionPath();
    DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) treePath.getLastPathComponent();

  • HT1414 after update of ipod touch ,,how could i get my music n videos back

    hii i am using ipod touch of second generration afte update of ipod how  could i get my videos n music back again into my ipod

    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How could i get access to MDM API,Is it available to all Enterprise accounts?e

    Hi ,
    I am trying to develop an enterprise application which needs to list all the installed Enterprise apps in the device.Also there is an option to delete the installed enterprise apps from device.I found that this can be done only by setting up a customized MDM server.My company already has an enterprise account.I have some doubts related to this
    1 . Is it possible to setup a custom MDM server using MDM API's?
    2. How could i get access to MDM API's to setup a custom MDM server/
    3. Is MDM server provided only by third party vendors?
    4. Is MDM server /MDM API available to all enterprise accounts?
    Looking forward  for a quick response.
    Thanks in advance

    A backup of a device with a newer version of iOS cannot be retored to a device with an older version.  The solution is to connect to itunes and update the new device's iOS, then perform a restore.

  • How could i get the dump/restore utility?

    I am newbie to arch, a stupid question
    when i use FreeBSD or other Linux Distribution, dump/restore is always the standard utility
    but i do not find them in pacman
    how could i get the dump/restore utility?
    thanks

    fukawi2 wrote:
    Ranguvar wrote:dump and restore are deprecated in Linux IIRC. Other utilites are available. There's even a quote by Torvalds where he disses them
    There's nothing wrong with the classics
    I think so

  • How could i get the status of Purchase Oder's status

    Hi, Great ALL!
    Can you tell me, what I can to do.
    I need to do some check at purchase order in checking or saving time.
    If there are any mistakes, system could set some warning message or error message(like the following pictures:)
    1.[http://lh5.ggpht.com/dingdinghaochibao/SP3QkVca4VI/AAAAAAAAAHA/GjAd5ksg3Og/s576/Picture1.JPG]
    2.[http://lh3.ggpht.com/dingdinghaochibao/SP3QkeJgx1I/AAAAAAAAAHI/DfE6mvIOpm8/Picture2.JPG]
    Here is my question: How could i get those messages?

    a®s
    Thanks for your answer.
    But i still have one question. After i made a purchase order although there were one warning message given by system, i could not find any log by TR. SLG1.
    Is there any way to get those message by BAdi or exit?

  • Dear Customer Service Team,  I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I

    Dear Customer Service Team,
    I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I can not find it and now I only have access to the trial version.
    Thank you for your help in advance.
    Kind Regards,
    G. Zsolt

    There is no serial number require for Creative Cloud products, you may activate the products using your email address and password which is associated with Adobe. If your Dreamweaver asking for serial number, then make sure you are signing in with correct email address.
    You may also refer below link
    Sign in, activation, or connection errors | CS5.5 and later

  • HT204053 I don't see Icloud under my setting, how could I get it?

    I don't see Icloud under my Mac settings, how could I get it?

    iCloud does not appear in System Preferences on Snow Leopard. The minimum requirement for iCloud is Lion 10.7.2 - as this has been superseded by Mountain Lion you would need to upgrade your Mac to that, having first checked that it meets the requirements as listed here:
    http://www.apple.com/osx/specs/
    The only thing you can do with Snow Leopard is to access iCloud mail on an account which has already been set up:
    Entering iCloud email settings manually in Snow Leopard or Leopard
    and possibly sync calendars (though this is a hack and not necessarily reliable) as mentioned in this page:
    iCloud and Snow Leopard

  • I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    See -> What is "Other" and what can I do about it? by Kappy.
    Clinton

  • How Could Adobe Get it So Wrong!

    How could Adobe get it so wrong!
    I have trialled Captivate 5 over the weekend and I can see absolutely no reason to upgrade from Captivate 4 to Captivate 5, the opposite in fact.  Captivate 5 is a money making project for Adobe not an improvement on Captivate 4.
    The team who work on the Captivate project should hang their heads in shame and be disbanded.  Have they not once look at the Captivate forums, have they not seen the problems users have or the stream of question or requests users have placed on the forums. 
    A quick test which can be repeated many times over:
    Look on the forum, under Captivate 4, for the subject with the highest requests for help.
    Now look at Captivate 5 and in every case you will see the problem, bug or restriction is still there.
    Captivate 5 looks grey and bland, the screen is cluttered and some features are buried so deep they are hard to find, simple things default to being turned on, such as anti-alias. In all other software programs, these things default as off, which makes more sense to turn something on if you want to use it.
    There is still no way to easily print the certificate page without a third party widget and why can't you fully justify text.
    I am now on the look out for other e-learning authoring software and will not encourage anyone to use Captivate 5.

    I encourage you to take Adobe up on their offer to talk via phone and/or Adobe Connect about your frustrations, concerns, bugs, and feature requests.
    While I too have been frustrated in the past by Captivate issues, there are some at Adobe who seem to have a sincere interest in addressing user issues and strengthening the Captivate product and name.
    I took advantage of Adobe's US East Coast tour in October and met with Akshay Bharadwaj and Shameer Ayyappan in New York City.  I did my fair share of venting, but found both Akshay and Shameer motivated to both listen and act. I left very thankful for the opportunity.
    If someone from Adobe offers to connect with you one-on-one to talk about your concerns, my suggestion is to take them up on the offer!
    Kind Regards,
    Sara

  • HT4718 By mistake, I delete OS X lion from my MAC app store "purchases"  how could I get it back?

    By mistake, I delete OS X lion from my MAC app store "purchases"  how could I get it back.?

    Did you see these threads in the forum?
    https://discussions.apple.com/message/18287573#18287573
    https://discussions.apple.com/message/17573559#17573559

  • How could i get apps without using creditcard

    how could i get apps in my i phone?

    Read the information found in this support article: Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…

  • How could i get other themes  but not in keynote, How could i get other themes  but not in keynote

    How could i get other themes  but not in keynote???!!!

    Create them yourself, specific, simple, easy and free.

Maybe you are looking for

  • Coordinate Text Box Size

    I have a set of pairs of text boxes (one for medication name, one for that medication's dose). If the user enters text on multiple lines in a given text box, the text box expands to accomodate. However, the corresponding text box in the pair does not

  • My Apple software is a nightmare lately

    I've always been really happy with my Macs and the software's been a dream to use. Until Leopard that is. I always keep my software up to date, as soon as software update wants to download and install I always stand back and let it do it's thing. My

  • Sapscript : Printing Text In same line

    Hi Friends,            I have created 2 standard text.            I want to print the follwing in the same line -            First standard text + <A hard coded value> + Second standard text. <b>           I have coded like this -</b>            /:  

  • HT5858 i have to connect to i tunes because my device used the wrong pass code too many times

    i have to connect to i tunes because i have tried the pass code on my i phone too many times and it has locked me out

  • Authorisation on internal orders

    i wud request someone to help me out with the authorisation of internal order group. we have created int. orders and grouped them. also, the order type is exclusively defined. how do we restrict/authorise selective people for viewing the int. order r