Is it only one chance i can initialize array with int [] a={3,2,1}

is it only one chance i can initialize array with int [] a={3,2,1}
===============================
class InitializeArrayTest
     int [] a;     //i need keep a[] global
     public static void main(String args[])throws IOException
               //a=new int[] { 3, 2, 1};//can not complie<========why here is wrong
               a=new int[3];//also can not
               a={3,2,1};     //I want to use {3,2,1} as data for simple test purpose here for other method
}

so if static means only one instance allowed
for what reason there is no compiler error in the
coding below
     static int [] preSort;
     public B(int i)
int []preSort=new int; //<======why no syntax
You are declaring a new local variable called preSort, which has scope to the end of the constructor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • When I login to Horizon View, it shows me the list of desktops to connect to. If I'm entitled to only one desktop then can View auto connect me to that desktop instead of me clicking on Connect?

    When I login to Horizon View, it shows me the list of desktops to connect to. If I'm entitled to only one desktop then can View auto connect me to that desktop instead of me clicking on Connect.

    Yes you certainly can.
    Right click any desktop in the list > Settings > in the left pane select the desktop you want to auto connect to > check "Auto connect to this desktop".

  • HT5622 Have Family Mobile with 2 phones and only one Apple ID can all be controlled by the main phone?

    Have Family Mobile with 2 phones and only one Apple ID can all be controlled by the main phone?

    angiefromaustin wrote:
    Yes I know the password for Apple ID.
    Then there should be no issue for you.
    angiefromaustin wrote:
    I do not know the password to get onto the 3G phone to make changes or update apps etc.
    Then there is more than one Apple ID involved.... Or a Restrictions Passcode has been set.
    angiefromaustin wrote:
    2 phones and only one Apple ID
    Then what do you mean by this ?

  • Unable to install SSL Certificate - ADMIN4118: Only one server certificate can be installed at a time

    Hi,
    We are trying to install SSL certificate (Verisign Class 3) on iPlanet Web Server (version 7). However, at the final step we are getting the error "ADMIN4118: Only one server certificate can be installed at a time"
    We are following the below steps,
    Under "Server Certificates" tab,
         -> Click on "Install" button.
         -> On "Select Configuration" click on "Next" button.
         -> On "Select Tokens and Passwords", select default token as "internal" and click on "Next" button.
         -> On "Enter Certificate Data", select option as "Certficate File" and give path to the certificate file which is having .p7b extension
         -> On "Certificate Details" we are getting warning as "Duplicate Server Details Found" and it's by default using the existing certificate's nickname.
         -> On "Review" page after clicking "Finish" button, an error is displayed saying "ADMIN4118: Only one certificate server can be installed at a time"
    There are multiple sub-domains availble and the new certificate we want to install contains one more sub-domain.
    So, say currently the subdomains present are,
    1.abc.com
    2.abc.com
    so on...
    and now we are trying to install a SSL certificate having one more subdomain say 10.abc.com.
    Please let us know if you have solution to this problem.
    Thanks,
    Rajesh

    Hi Rajesh,
    That error is most commonly seen when you are trying to install a certificate chain into the Web Server.
    The chain should be installed using the "Certificate Authorities" tab per the following steps:
    1) Login to the Admin Console.
    2) Click Edit Configuration from Common Tasks > Configuration Tasks.
    3) Click the Certificates > Certificate Authorities tab from the Configurations page.
    4) Click the Install... tab from the Certificate Authorities (CAs) page.
    An Install CA Certificate Wizard opens. The wizard guides you through the settings available for installing a Certificate Chain. Select Certificate Chain when prompted for Certificate Type.
    You should then see the CA and intermediate certificate(s) listed in the security database.
    If you have access to MOS, more details can be found in the MOS KM Note:
       Oracle iPlanet Web Server - 'ADMIN4118: Only one server certificate can be installed at a time' When Installing Certificate Chain (Doc ID 1925025.1)
    regards
    Tracey

  • Why Left and Right Joins if only one of them can serve the same purpose?

    I understand that left join is used to display all the records from left table whereas the right join is used to display all the records from right table in a join.
    However, if we switch the positions of the join tables and perform left join we can get all the records of the left table.
    A left join B -> will give all records from A
    A right join B ->will give all records from B
    B left join A -> will again give all records from B.
    The order in which the data is displayed(ie the field order) can also be maintained in the SELECT clause.
    So, Why do we have left and right joins separately in existance, when only one of them can serve the same purpose?

    Hi,
    I think it's because it is sometime more natural to outer join on left or right.
    In your data model (or the query you are writing), there is some kind of hierarchy between tables : I feel more natural to have the table with lowest hierarchical level (the root table) on the left. So I sometimes prefer to right outer join...
    This is a very personal feeling, I must admit.
    To me what is strange is to have chosen left and right as they refer to a "latin" reading direction => forward join and backward join would be more meaningful for people that read from right to left.
    +And I prefer the new joining syntax that doesn't us the {noformat}(+){noformat} sign...+

  • I'm deaf in one ear and need a stereo-to-mono earbud so I can use my iPod and iPhone. It is not good being able to hear only one channel. Can Apple consider making such a thing for those of use who need such a thing?

    I'm deaf in one ear and need a stereo-to-mono earbud so I can use my iPod and iPhone. It is not good being able to hear only one channel. Can Apple consider making such a thing for those of use who need such a thing?

    bassvid wrote:
    Thanks...now I need to do something about the iPod.
    I'm not sure which version iPod you have, but I just checked my iPod nano (current generation) and it also has a Mono Audio setting in Settings>General>Accessibility.

  • HT4597 Only one of my devices is compatible with iCloud.  If I update that device (my iMac) will I still be able to get just emails on my old iPhone classic (as I can now)?

    Only one of my devices is compatible with iCloud.  If I update that device (my iMac which is OS 10.7.4) will I still be able to get just emails on my old iPhone classic?  At the moment I have just updated to icloud 'emails only'!

    Oh, ok.  When I moved over I clicked the 'not all my devices are compatible' button and was told that I would continue to get my emails only.  Perhaps I'l now be brave and click the “Complete Your Move to iCloud” alert - and see what happens.  Many thanks for your help

  • My airport express works on my MBPro 17 w/ 10.5.8 but not my MBAir11".  The MBAir says that this version of Airport utility doesn't support this base station.  Is ther any chance I can use this with my MBAir?

    My airport express works on my MBPro 17 w/ 10.5.8 but not my MBAir11".  The MBAir says that this version of Airport utility doesn't support this base station.  Is ther any chance I can use this with my MBAir?

    Is this an older "round" version of the AirPort Extreme? If yes, it is true that AirPort Utility 6.x no longer supports the older AirPort Extreme and AirPort Express models.
    A model number......located on the bottom of the Extreme or on the side of the Express would be helpful to confirm what you have.
    Apple probably does want you to buy a new AirPort Extreme.
    The workaround might be to use a Mac or PC running a 5.x version of AirPort Utility.
    A more complicated workaround would be to install AirPort Utility 5.6 on Mountain Lion.  This is not supported by Apple......it does work for me.....but may not work for you. See this article for more details:
    http://www.macworld.com/article/1167965/mountain_lion_and_the_ancient_airport_ba se_station.html

  • Interactive forms- i see only one record -how can i see more?

    Hi experts,
    i have a table and the result is only one record instead of more records.
    how can i see more records?
    my code is:
    types: begin of structure_0021,
    favor type pa0021-favor,
    yy_id type pa0021-yy_id,
    fgbdt type pa0021-fgbdt,
    end of structure_0021.
    data: it_0021 type table of struct_0021,
             wa_0021 like line of it_0021.
    select favor yy_id fgbdt from pa0021 into corresponding fields of table it_0021
    where pernr = lv_pernr and
    subty = '2'.
    data: lo_nd_adobe2 type ref to if_wd_context_node,
            lo_nd_ls00212 type ref to if_wd_context_node,
            lo_el_ls00212 type ref to if_wd_context_element,
           ls_ls00212 type wd_this->element_ls0021.
    lo_nd_adobe2 = wd_context->get_child_node( name = wd_this->wdctx_adobe).
    lo_el_ls00212 = lo_nd_adobe2->get_element().
    lo_nd_ls00212 = lo_nd_adobe->get_child_node(name = wd_this->wdctx_ls0021).
    lo_el_ls00212 = lo_nd_ls00212->get_element().
    loop at it_0021 into wa_0021.
    lo_el_ls00212->get_static_attributes(importing static_attributes = ls_ls00212).
    endloop.
    lo_nd_ls00212->bind_table(new_items = it_0021).
    if anyone can help me - i will really appreciate it.
    i tried other thing and didnt succeed.
    thanks,
    Michal.

    Obvious question, but have you got 'Find My iPhone' set on both devices?  Settings>iCloud>Find My iPhone.

  • Why can i see only one picture in the illustration windows with iTunes 10.5.1?

    why can i see only one picture in the illustration windows since iTunes 10.5.1?

    Assuming Apple doesn't eviscerate the files of the secondary graphics with another upgrade, there could be a plug in that reads the graphic and runs along side iTunes..we should get someone or Apple to program an alternative If we have to accept this downgrade in iTunes proper.
    I've developed a quick workaround, and am still hoping Apple will fix this!
    Go To Get Info on the tune you want to see secondary artwork for.
    Go To the Artwork tab
    Drag the back cover to the desktop, and it will create a new jpg you can open with quick viw or prieview where you can see it large!
    you end up with a lot of jpgs on the desktop to discard!

  • HT1386 I have been syncing my IPad to only one PC computer successfully for over a year.  Now when I try to sync I get the message that the ipad is synced with another computer and can be synced with only one.  How can I correct this?

    Although I have synced my ipad to only one PC computer I now get the message that it is synced to another computer and only one computer sync is permitted.  I have lots of apps on the ipad and do not want to loose everything by starting fresh with the ipad.  How can I get the ipad to again accept my computer and sync successfully?

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Hi orange signal on my sony ericcson fine but on iphone 3gs (one i have just unlocked) is only one bar what can i do???

    Hi there
    I have a strong signal on my sony ericcson but only one bar on the iphone 3gs I have just unlocked .
    Any suggestions???

    How many bars on the Sony Erriccson is strong?
    You do know the number of bars shown can be different with different manufacturers?
    What is most important is can you place and receive calls? If so with one or two bars showing vs two or three with another cell phone is what matters since how this is registered can be different with different cell phones.

  • Only one friend I can't send iMessages to... ?!

    I have an iPhone 4. My friend has a 4s. We can't send each other iMessages. Verizon says there is nothing wrong on their end. It's Apple related.  Apple customer service had me check on the iOS (we're both up to date). I tried sending iMessages from the email address instead of the phone number. No luck. Also wiped phone clean then restored.  No luck.  Deleted all purchased apps, signed out of App store & iMessage with that Apple ID... created a brand new Apple ID.  Signed in to iMessage with new apple ID... No luck.
    It is just this one friend that I can't message with.  When I turn off my iMessage, we can text just fine.  When iMessage is on, the messages will always say "delivered" but when I ask her, she hasn't gotten any.  She also sends some to me that I never receive.
    I have a case ID# from my last conversation (10 days ago) but when I type it into the website, it doesn't recognize it.  Not sure if 10 days was too long to wait to follow up on this same case.  Trying to chat but the website says I have to pay $19 for one time support?!
    If I had known it would be so annoying to have an iPhone, I would have considered all my options.
    Please help me figure out why I can't message this one friend!

    Well, after reading some other discussions, I signed out and  back in with my original apple ID.  I started a fresh iMessage to this friend using her EMAIL address not her phone number.  It is working now and showign up on her phone as an iMessage!  Thank goodness. Wish I understood why...

  • I've placed two Edge oam files in to a dps doc and only one will work, can anyone help?

    Hi, I've created one animation and tested it in dps and it works fine. I've repeated this and my second animation is fine also, but when I have them in the same doc only one will work.
    Has anyone had this problem or know of any suggestions?
    I'm using Edge CC and Indesign CC with the latest viewer release on my iPad.
    Thanks

    Hi, yes I'm using the most up to date tools (v27). I've tried also setting the delays to various different increments, this doesn't make a difference.
    Although this is an old post I wonder if it is the same issue - http://forums.adobe.com/message/5615731#5615731
    Thanks

  • How do I compensate for only one ADDT ' tNG_config.inc.php file with many Registration pages to build?

    My dynamic site has a lot of different languages funneled into one website, using various cookies, url params, php includes, etc. all to obtain similar info in different languages. Thank you David Powers.
    It is working really well and now I’ve come to the Registration section. Okay, so registration isn’t all that hard; I could do most of it with the standard Dreamweaver set of tools. Alas, I really like much of what ADDT has to offer with welcome email messages and activation and such.
    Here’s the setup: Obviously, with many different language people, I have many different databases for them. I did that becuase we’re expecting a big audience and I really don’t want to have all those different language names in the same table. Furthermore, these tables, whereby the students will login, will also contain a lot of information about their work so again, don’t want to have one massive table. I’ve divvied them up into tables by language and I’m using those tables to keep track of them and their work.
    I want to use ADDT’s User Registration Wizard and I have looked at all the neat stuff in the Control Panel/Login Settings.
    Here’s my situation: I notice that when I’m done with the configuring of one of the registration pages, I’m asked if I want to upload the tNG_config.inc.php page and that it has changed since the last upload. I saved a copy of the _config.inc.php and did a new registration form with the same info and when done, I compared the two _config.inc.php files. As one would guess, there is a small difference in the Connection string to the databases  $tNG_login_config["connexction"] = "connString_Ital_db".
    My problem is that I have 13 of these registration pages to do but ADDT only has the one tNG_config.inc.php. That’ll work great for the one with which it is associated, but the others will obviously break. I’ve looked through the code in the Registration pages, to find the ADDT link to the tNG_config.inc.php file hoping to rename it Italian, Spanish, etc, but the name of the file does not appear in the Registration page.  I realize that ADDT Control panel is designed for use on one site, and can then be used on others, with the changes etc. But my site seems a little unique since so many sites are actually in one.
    Has anyone whipped this problem before? I just don’t understand why there is no link in the head code of the Registration page to let me change it and to create more config files with different names. Thanks for you help!
    [Moved by moderator to appropriate forum]

    Hi Brian,
    I just tried to check all of ADDT´s "includes" files for any internal references (read: "require" or "require_once" statements) to the file "tNG_config.inc.php". So far I can only see this file referenced in the file "tNG.inc.php" (within the "$KT_tNG_uploadFileList1" array).
    So what could this mean ? Maybe you´ll have to make copies of the the original "tNG.inc.php" as well and save them as, say, "tNG.inc_ital.php" file plus make sure that these copies internally point to a different "tNG_config_ital.inc.php" file -- because it´s always the first mentioned file which gets referenced from e.g. an ADDT login page (see the "Load the tNG classes" - part)
    I want to use ADDT’s User Registration Wizard and I have looked at all the neat stuff in the Control Panel/Login Settings
    The Control Panel will always update the main "tNG_config.inc.php" file, so any further modifications will have to become manually applied to the custom files you´re creating.
    Cheers,
    Günter

Maybe you are looking for

  • Dunning Letter Design & Aging report

    Hello Experts, I have a few doubts in B1 Sales AR -> Dunning and Aging Reports. 1. How do we incorporate our own letter format for dunning letters? I looked for PLD's, but nothing was available in the print preview screen. 2. When we execute Customer

  • [SOLVED] [WOL] Arch changes "wol g" setting to "wol d" on boot

    I'm trying to get Wake-On-LAN working on my Arch Linux server. The network card uses the 8139too module. I've added a line to modprobe.conf to accomplish this: install 8139too /sbin/modprobe -i 8139too; ethtool -s eth0 wol g This line is correct, bec

  • Mavericks/Aircard Watcher Problem

    I updated to Mavericks and now my Aircard Watcher won't work. When I try to send text messages to my subscribers, either a) Frontline recognizes the 3G modem and thinks it's sending, but nothing happens; or b) I can get my computer to recognize the 3

  • Priority of the components.

    I m tryingto make a game program. firs i added panel1 to frame,then i added 2 small moving panels (panel2,panel3)to panel1 . when panel 2 is in front of panel3, when i click a part of panel3 iwant it all to be apperared. i m looking for a code like p

  • Can't import emails

    I suspect this problem will have been dealt with before on this forum, but anyway... I recently lost a lot of emails when I deleted an account. I have a backup of them in an iomega 60gb hdd. The file that I backed up was Home> library> mail... I drag