Is there only one way to initialize a char array ?

char[] helloArray = { 'h', 'e', 'l', 'l', 'o', '.'};
why does't this working like it works in c ?
char hey[]={"you are dead !"};
??

DogsAreBarking wrote:
char[] helloArray = { 'h', 'e', 'l', 'l', 'o', '.'};
why does't this working like it works in c ?
char hey[]={"you are dead !"};
??C != Java
In C, strings are char arrays, in Java they are instances of java.lang.String.
edit: try this:
char[] chars = "hello, world".toCharArray();

Similar Messages

  • HT1386 How do you sync only one way?

    I want to know how to sync only one way because there are some photos from our previous apple devices and I don't want those photos to appear onto my new one when I sync to put the photos or videos onto the computer. Does anyone know how to do it without messing up the system?

    The photos are now on your computer and you don't want them on your new iPad?
    Then move this photos on your computer to another location (folder) first and then sync.

  • Can I make OneDrive Pro sync only ONE-WAY?

    Can I make OneDrive Pro sync only ONE-WAY?

    That sucks. DropBox can.
    We want to SYNC literature down to sales reps and not have the sales reps accidentally erase from the Cloud for all. Hence we want a one way SYNC to have them SYNC literature onto their computers for remote
    access to the files.
    Surely SharePoint cannot be that far behind DropBox.
    Is there no way to achieve that?

  • Can I use Google Sync to transfer only my contacts from my IPhone 4 to my gmail acct? I don't want to sync info from Gmail to the IPhone. Can the sync work only one-way? I have 0 contacts on my gmail as I'll only use it as a back-up 4 my IPhone contacts.

    Can I use Google Sync to transfer only my contacts from my IPhone 4 to my gmail account? I do not want to sync info from Gmail to the IPhone. Can the sync work only one-way? I have 0 contacts & 0 calendar events on my gmail account. I opened the Gmail account specifically to for the Google Sync and wil only be using this account as a back-up for my IPhone contacts. Please Help!!

    You do realize that the SIM only contains account information for your wireless account.
    Moving the SIM from phone to phone does not cause any of your iTunes content, contacts, email, etc to magically appear on the device.

  • Mouse scrolling only one way

    All of a sudden, my mouse will scroll only one way (down) with the trackball. I assume it's a corrupted preference(?), but I don't find the .plist item (probably not looking in the right place). Would appreciate help asap.
    TIA,
    Picman

    Clean the tracking button. Details in http://store.apple.com/us/question/answers/product/MB112LL/B?pqid=QX2AHHD74J7F2T 2JKY9TDJY7PJ2C77Y4T Do note, that denatured alcohol on a soft cloth sometimes is needed if the residue is extremely oily.

  • Why is there only one automated audio fader at head and none at tail of some audio clips?

    When I select "Show audio animation," top left of an audio clip, on some sections I have two knobs... one at the head for fade in, and one at the tail for fade out. Why is there only one on some of the audio clips and not both? I've set up the clips the same, regarding audio animation, and some have faders at head, but not tail. How do I make another fader at the tail of a clip? Or why doesn't it automatically behave like the other audio clips that DO have two faders? I don't know what I'm doing to make them act differently.
    Thanks,
    Michael

    Tom,
    Thanks for reply. I'm attaching screen shots. For some reason my pointer didn't show up with a normal screen grab. Don't understand. Anyway, several versions are attached. There isn't one hidden on the right beyond the frame that pops out when I put my pointer there (or any tool). Strange.

  • Why is there only one Operating Concern defined in GBI?

    Hi all,
    I have the following question: when looking at the CO structure of the GBI case study, why is there only one, global operating concern defined? According to the definition of an OC, it is the level whereupon profitability analysis is performed. So why is in GBI that has two very distinct business areas not at least two OCs defined (one per business area), if not more (per product)?
    As a follow-on, what is then the relation between OC and Controlling Area? I am looking for a plain English explanation that I can also use for teaching purposes.
    Thank you in advance for reading!
    Regards,
    Gerhard

    Hi Gerhard,
    I hope my reply is not too late.
    I agree with you.  Profitability analysis is typically done at a detailed level - by market segments, which may be defined by geographical segments, customer groupings, product groupings, salesforce grouping, etc.  CO-PA does support profitability analysis at such detailed levels.
    After defining an operating concern and activating it, the system generates a series of database tables for the operating concern.  I took a screenshot of the (partial) structure of the "master" table for the global GBI operating concern, GL00, from the GBI 2.2 system I am using, below:
    As you can see, with such a table structure, CO-PA is capable of capturing profitability information at a very detailed level for reporting and analysis.
    You may also notice that operating concern is not a field in the table.  The reason is, the entire table (as well as its related tables in the same series) is used only for operating concern GL00.  Its name is even hard-coded in the last 4 characters of the names of these tables.  When CO-PA reports are executed in SAP ECC, they retrieve data from only one series of tables, i.e., only data of only one operating concern can be reported.
    Back to your question: Why is there only one operating concern and not two?  The wisdom of defining one global operating concern is that profitability data of both controlling areas (Europe and North America) will be updated into the same series of database tables and reported together.  If there had been two separate operating concerns for the two controlling areas, there would have been two series of database tables, making profitability analysis across the two areas difficult, if not impossible.
    Let me know if you need further clarifications.

  • Why is Mail rule syncing only one way?

    Odd. I've got a Mac mini and an iMac, both running 10.8.2, both with iCloud syncing Documents & Data. Mail on the mini has rules -- created on that machine -- for SpamSieve that are not syncing to the iMac; in fact, both rules disappear every few days and I only notice because spam starts piling up.
    On the other hand, changes to Mail rules on the iMac are synced to the mini. The mini has been running Mountain Lion for five months; the rules only started disappearing after I upgraded to ML on the iMac last month.
    Any ideas on why the syncing is only one-way?

    It appears that I can't edit my original question. So here is new information. It is syncing. However, the contacts are syncing with my personal folders. The calendar is syncing from Outlook to Ipad from my personal folders. However, the calendar is syncing to Outlook in a hotmail calendar in the profile that I didn't know existed. How do I get it set right.
    I tried to select the calendar. However only one calendar is available in itunes. It must be the correct calendar as it is syncing fine. So how do I get ipad to sync back to the personal folders calendar instead of the hotmail calendar in my profile?
    Pastor John

  • AirDrop transfer between Mac mini (late 2012) and MacBook Pro (late 2008) works only one way.

    AirDrop transfer between Mac mini (late 2012) and MacBook Pro (late 2008) works only one way.  I see both machines on both airdrop windows. Firewalls on both machines are set exactly the same way, and with Network Browser set to allow.  Can send a file from Mac mini to MacBook, but not the other way.  Never get a window asking to accept on the Mac mini.
    Found no useful documentation on AirDrop anywhere in the whole support site.

    Maybe this will work. From an Apple support article.
    You can also use the Share button to send files to your neighbors via AirDrop. In a Finder window, select the item you want to share, and then click the Share button in the toolbar. For more information about the Share button, see this help topic:

  • Why cant itunes get it together? Why is there only one frank ocean video when in America there are more???

    why cant itunes get it together? Why is there only one frank ocean video when in America there are more???
    i have spent all day trying to buy or download kid Cudi's what I Am video but am being blocked every time. Why???

    Because the content providers have not released it for your country. I am guessing you are not in the US.
    This is nothing to do with Apple.

  • Since me and my mother moved from iChat to iMessage bêta, screen sharing works only one way. I can share my screen with her but not the reverse. When actually what I would like to do is share her screen. Video works fine both ways.

    Screensharing works only one way since we moved from iChat to iMessage bêta. Before that we have never had any problem with screen sharing. We haven't changed anything else, just installed iMessage. What I need to do is share her screen, and the only thing I can do is share my screen...
    Thanks for your help.

    HI,
    On the whole I am finding it very stable.  (it presents the same quirks in the same manner each time)
    It has some things that are more Feature requests than "Bugs" per se about the way it works that I would like to change.
    It can also be difficult to tell exactly what is going on whenyou are hearing about it third hand.
    Sounds like you have a plan.
    8:35 PM      Tuesday; March 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • My iPhone calendar and iCloud sync only one way

    My iPhone 4 (iOS 5) calendar and iCloud sync only one way -- from iCloud to the phone. Any ideas why I can't sync from my iPhone calendar to iCloud?

    When you add an event on Iphone, 3rd fields down from bottom, select calender > iCloud. Voila!!
    I am not sure everybody understand really the intention with iCloud. It is one single calender residing on a Apple server somewhere. Selecting iCloud from any device will show this calender. Then how to sync this with other calenders is to me a mystery, or not possible, especially on Lion iCal. Please anyone.

  • Iphone 5 - only one way synchronization with iCal

    Hello community,
    Since I have my new iPhone 5 the calendar synchronization is not working properly anymore which means only one way from iCal to iPhone but not the other direction. I could not found a solution in the diverse support communities so maybe you have an idea what the error might be?
    I am synchronizing locally via iTunes from a Mac Book Pro and I am not using iCloud.
    It would be great if you could help.
    Greetings from Zurich,
    Heike Anna

    This is generally an indication that the synchronization framework on your machine is not handling data changes properly, and must be reset.
    To reset it, launch iSync—that's right: iSync, not iTunes—then…
    • open the Preferences… dialog
    • press the Reset Sync History button
    That will remove the records currently stored in your truth database, and force a first-time, slow synchronization event when you next launch one in iTunes.

  • Lightning connector  charges only one way on 1 month old IPAD.

    lightning connector  charges only one way on 1month old IPAD . Any idea what could be the issue ....?

    Hey George,
    Have you done a wireless scan of the network to see what the wireless network looks like?
    I would use the program INSSIDER on a wireless laptop and scan the network for all the 2.4ghz networks.
    This will allow you to select a channel that is not being used and should stabilize your wireless.
    If someone is within range of your wireless signal and their signal is strong enough they can disrupt your signal.
    I would try that and let us know how it goes.

  • Are international calling plans only one way?

    I just purchased a Skype plan that lets me call landlines and mobiles in the UK. However, I'm anticpating someone from the UK to call me in the USA. Does my subscription allow for this, or it only one way - I can only call phones in the UK?
    Second question: do I need to purchase a separate subscription apart from the one mentioned above to call phones in the USA and answer calls via Skype that originate in the USA?
    Thanks!
    Solved!
    Go to Solution.

    mark1987 wrote:
    1. However, I'm anticpating someone from the UK to call me in the USA. Does my subscription allow for this, or it only one way - I can only call phones in the UK?
    2. do I need to purchase a separate subscription apart from the one mentioned above to call phones in the USA
    3. and answer calls via Skype that originate in the USA?
    Hello and welcome to the Skype Community.
    1. Your contact would need to purchase a Subscription to call you.
    2. Yes. You require the Unlimited USA/Canada Subscription 
    3. Your US contacts can call your Skype Number which you have already purchased.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

Maybe you are looking for