String name = new String {...} what is this?

Hi,
Java beginner, moving from C++:
protected String[] name = new String[] {
          Integer.toString(1),
Integer.toString(2)
     };what does a bracket mean after new String[] ?
Thanks,

Thanks, I didn't know what to search for in
google...
Is it generalizable to any object?Why don't you try it with various objects and primitives? Then you'll find out for yourself.
You can also read the JLS
http://java.sun.com/docs/books/jls/second_edition/html/j.title.doc.html
or
http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html
Or any of a number of books or tutorials. This is basic stuff. It should be covered.
Sun's basic Java tutorial
Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
Bruce Eckel's Thinking in Java (Available online.)
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java.

Similar Messages

  • When you recieve an email from apple saying "welcome to your new mac" what does this mean

    hey people
    i recieved an email saying "welcome to your new mac"
    i have already got a imac and was wondering if this means someone has purchesed another mac?
    thanks

    Did the email ask that you click on a link or provide additional information about yourself? If so it's a phishing scam. Delete the message and ignore it.
    If you did buy a new computer sometime recently, then it's just a welcome email, nothing more.

  • What does this error means? "Line 20 column 57: character content of element "language" invalid; must be a string with length equal to 3 (actual length was 7) at XPath /package/book/metadata/languages/language" "

    Hi there.
    I am about to publish a book in English and Chinese.
    What does this error means?
    Line 20 column 57: character content of element "language" invalid; must be a string with length equal to 3 (actual length was 7) at XPath /package/book/metadata/languages/language"
    And where is line 20, column 57?
    Thanks folks!

    Go into iTunes Producer and select from the dropdown, don't type.
    cs
    iBooks Author Guide

  • In about:config I inadvertantly created a preference name of 'true' status =userset type=string. Will this harm me? How do I remove it? thanks...

    In about:config I inadvertantly created a preference name of 'true' status =userset type=string. Will this harm me? How do I remove it? thanks...

    Thanks ... I found the way to remove it in the following link:
    http://kb.mozillazine.org/About:config
    To reset a preference to its default value or to remove an added preference, context-click (right-click) on the preference and select Reset. If you added the entry via about:config, the preference will no longer be listed after restarting the program. (For more information about resetting preferences, see this article).

  • When synching my ipod 80 gig classic, I get this message " iPod cannot be synched.  A duplicate file name was specified"  And yet, any new music in iTunes is added.  What causes this message?

    When synching my ipod 80 gig classic, I get this message " iPod cannot be synched.  A duplicate file name was specified"  And yet, any new music in iTunes is added.  What causes this message?

    Try deleting the iPod Photo Cache from the nominated folder that you have set up to sync photos to the devices.
    See iTunes: Understanding the iPod Photo Cache folder for more info.
    tt2

  • Infamous 'updating environment strings'; isn't this fixed yet??

    Ok this is killing me. I know there are posts, and I have weeded through them for the last hour.
    None of the solutions on here are working. Every install attempt of quicktime hangs up at the 'updating environment strings'.
    I've used CC Registry Cleaner mentioned in one post. I've used Windows Install Clean up. I've uninstalled QT, deleted all folders including ones in System32, restarted, NADA. I've even read it's a firefox issue. Unistalled that, tried the QT install, NADA. Ugh. somebody bottle me please.
    Another annoying thing is that I could not uninstall itunes without just deleting the folders, like it was 1992 all over again. It wasn't on the Add/Remove programs in CP, bizarre. Its still in my Start Up too...
    So question 2, how should I go about uninstalling Itunes? Downloading the setup file and selecting Uninstall? Will that work?
    More importantly I NEED the new Quicktime. It baffles me that this is MADE to be installed with itunes, itunes should be a stand alone. I'm about to buy an Ipod, but not if I can't install this!
    Windows XP by the way.
    The file, QTPluginInstaller.exe is doing it I believe, right when the icon is being created. This file is taking up 99-100 percent of my CPU when it hangs up. Coincidence maybe?
    HEEEEEEEEEEEEEEEEELP. I need a new MP3 player and this is literally making my clynical. Appreciate any help...GREATLY!

    I did the following on a windows XP Pro machine and got it to install finally:
    so after months of reading forums and pulling my hair out..here's what I did to get to work: ( windows XP pro )
    after a fresh reboot:
    1. Open a windows explorer window.
    2. right click on C:\ ( or your main windows drive )
    3. ->properties->security
    4. this will display all users and their permissions to this folder. click on add, enter your user name, and give yourself full access....this will take a while, it recursively sets the permissions of every file and folder on this drive for you to have full access ( I know, it sounds dangerous, and it probably is..but I got really f'ing frustrated..and had to go to extreme measures ).
    5. right click on the QuickTimeInstaller.exe file->run as: click off of the check box that says "Protect My Computer From Unauthorized .....etc..." - click on OK..
    6. I chose a folder other than the default ( I think ...\QuickTime3 )
    and I just about soiled myself when it actually worked...I hope it does for you !!!
    thanks
    Gen Zod

  • What does this message mean? : "The file name "DSC_0088.jpg" is offline or missing." ?

    What does this message mean? : "The file name "DSC_0088.jpg" is offline or missing."   I am in the process of importing photos from iPhoto (don't really know what I'm doing....) and when I look at one of the imported photos that message pops up.  I know what "DSC_0088.jpg" is.  I don't know what it means that the file is "missing".

    CASpyr,
    Thank you so much for your reply.  I have a couple of bigger issues that I am dealing with: too many photos on my laptop: 40,000! (Of course I have to throw away many of them, but that is time consuming). I have a MacBook Pro and have primarily used IPhoto. I have recently purchased 2 external drives and have transferred my photos to those, but I need a basic education about how photos are stored, copied, etc.  I have recently been told that iPhoto only shows and deals with jpegs, not RAW.  About 1/3 of my photos are RAW, so I purchased Lightroom, so I could do more with those RAW photos.  I have been told by my local Mac store that I need to delete most of my photos from iPhoto, because it's causing problems.  I am reluctant to do so until I am sure that all of the keywords, descriptions and editing I have done to these photos is not lost when deleted from iPhoto. I just watched a tutorial about importing to Lightroom and got out of it that I needed to copy photos from iPhoto to a file on my desktop and then copy to Lightroom.  I did that, it seemed to work.  Then (because of my storage/memory issues) I deleted the photos (just a few as an experiment) from that desktop file.  I'm guessing that is why Lightroom doesn't recognize the the photos.  It seems that (learned from another tutorial) that one uses "Add" , Lightroom is only connecting to the source of the photo, not  actually copying it to the program.  Sounds like I need to use the "Move" feature instead.  My ultimate goal is to store the photos on the 2 external drives and eliminate most of them from my lapop.  So my basic questions have to do with what data (metadata??) is copied from iPhoto to an external drive (RAW???) and what isn't copied. Basic understanding issues,obviously….  I hope this isn't too much to ask.  If you can recommend a book or resource that can explain those basic issues to me I'd appreciate it.  I just got back from a trip and I can't download my new photos until I manage the rest!
    Thanks,
    Nancy

  • Crawled property category option: "Map all string properties in this category to the Content managed property"

    I've been searching online, and haven't been able to find a definitive answer to this. Does anyone know what the following SharePoint 2013 Search Service Application, Crawled property category option does?
    "Map all string properties in this category to the Content managed property"
    It appears when editing a crawled property category.

    Hi Vishal,
    There is no Official documentation explaining the setting "Map all string properties in this category to the Content managed property". In my opinion,  this setting will map all crawled properties which are in current category and 
    whose value is string type   to  the Content managed property.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • TS3297 "iTunes was unable to load data class information from Sync Services." What is this solution for the new phone to sync up with my iTunes acct?

    "iTunes was unable to load data class information from Sync Services." What is this solution for this new phone to sync up with my iTunes acct?

    Hi tadhunt,
    Here is an article that directly addresses that error message:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/ts2690
    I hope this helps!
    - Ari

  • HT5625 I'm trying to create a new Apple ID but when I was putting on my information, there's a box asking for an ITunes gift code. What's this and how can I get one?

    I'm trying to create a new Apple ID but when I was putting on my information, there's a box asking for an ITunes gift code. What's this and how can I get one?

    You're not obligated to insert a gift code. But you can purchase gift codes on the Apple online store (gift cards or certificates) or Apple Retail store
    Gift codes are pre paid cards so you can use credit on the iTunes Store to purchase content
    To create apple ID without payment method:
    http://support.apple.com/kb/HT2534?viewlocale=pt_PT

  • When downloading the new 10.7 update for itunes, an error message saying that there is an error writing to file, verify that you have access to this file comes up... what is this??

    When downloading the new 10.7 update for itunes, an error message saying that there is an error writing to file, verify that you have access to this file comes up... what is this??

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Screen Message"File iTines Library.itl cannot be read because it was created by a newer version of iTunes" What is this and how can it be fixed?

    Screen Message on P.C. "File "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes.
    What is this and how can it be fixed, please?

    Problem solved by doing the following:
    Open PC/Mac and search for iTunes Library.
    From the list, select the most recent version of iTunes Library. Save this to a folder.
    Delete iTunes from your computer.
    Install latest version of iTunes.
    When I opened the new version of iTunes, everything was there as before.
    I didn't need to import the saved version of iTunes Library. Maybe this happens automatically?????

  • TS1717 When I click the itunes icon on my laptop and error message appears "new itunes library" What does this mean?

    I can't open Itunes. It just says "new itunes library" and closes. What does this mean?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • I'm trying to download my Master CS6 onto a new hard drive because my old one crashed and I keep getting a message saying " Cannot write the file" or "I don't have permission to access the requested resource." ? What does this mean?

    I'm trying to download my Master CS6 onto a new hard drive because my old one crashed and I keep getting a message saying " Cannot write the file" or "I don't have permission to access the requested resource." ? What does this mean?

    Yes- it is a Mac. I went through adobes system requirements and re- downloaded supportive software. The notice seems to happen near the end of the down load with the messages above. I'll look into your suggestion. Thank you- appreciated.

  • In the lefthand sidebar of Finder, under 'Shared', I encounter in addition my TC, another computer, identified by a long name starting with 'hp'. I don't have another computer. What could this be? And how to get rid of it?

    In the Finder sidebar, under 'Shared', I encounter my TC, as well as another item with a long name starting with 'hp'. 'Get info' shows it to be a 'PC'. However, I don't have a PC. It cannot be my printer (HP), since that has anoter name.
    I can not access the item, which has me a 'guest'.
    What could this item be? And how to get rid of it?
    Many thanks in advance for your help.
    DB

    It's almost certainly your hp printer and is showing the WiFi adapter MAC address after the HP.
    To verify, look at the printer configuration page via Bonjour in Safari.  The settings tab shows the Mac address in the bottom left hand corner for my model of HP printer.
    I'm sorry but I can't explain why that would show up in the finder.

Maybe you are looking for