Questions from a novice

several basic questions that my java programmer's reference isn't making clear to me:
a. is String a primitve datatype? or is it treated as an object
b. whatever String happens to be, can there be a List of Strings?
c. if it's not right to have List li = new List(); that is instantiate a list, how come it's possible to instantiate something that implements a list e.g. List li = new classa.getSomeList();
thanks a lot.
-leo

a. is String a primitve datatype? or is it treated as an objectAn Object
b. whatever String happens to be, can there be a List of Strings?Yes
c. if it's not right to have List li = new List(); that is instantiate a list, how come it's possible to instantiate something that implements a list e.g. List li = new classa.getSomeList();List is an interface. Interfaces cannot be instantiated but classes that implement the List interface can. i.e.
List li = new ArrayList(); // ArrayList implements the List interfaceDave

Similar Messages

  • Silly questions from a novice?

    I have just downloaded i-tunes onto a computer and I am having several problems.
    1. After I have imported/ripped a cd into i-tunes, the songs skip through without playing.
    2. I went to the apple website and installed the latest i-tunes 6, and when I tried to import a cd, an error report came up, the one saying send error report etc.
    3. I put a few mixes from a website into i-tunes and it plays them right through, but when I try to put them onto ipod it says that the songs cannot be recognised?
    4. How do I take unwanted songs off of my ipod?
    Is this a problem with the computer that I am using? And if so can I go to another computer and install my i-tunes there. Or can you only download i-tunes onto one comp?
    So many questions I know, but I really dont have a clue and want to get some music onto my ipod.
    Thanks in advance.

    .4 To remove unwanted songs from your ipod connect your ipod to your computer, open itunes, then click on the ipod icon.
    Now all the songs on your ipod are listed to the right. Simply select the songs you want to remove, click on edit->remove.
    I believe they will be automatically removed from your playlists as well.
    good luck!

  • DB Design Question From A Novice

    I need help in structuring the code for a javabean that I'm writing. Basically, I want to have the bean run several different types of DB queries (e.g. "check username and password", "list the groups that the player is in", "list player attributes", etc).
    The approach I started taking (out of simplicity) was to write a new method for each type of query I wanted to run. In other words, I wrote one method to "check username and password" and another to "list the groups that the player is in", etc. However, I noticed that this caused a lot of repeating in the code (e.g. con.createStatement(); and stmt.executeQuery() for all these methods). I posted this question on a different forum and someone suggested writing a generic method (that takes a String parameter containing a database query) and putting the output into a Vector object and returning that to the calling method. My question is: "is this the 'common' way of doing things?" Another question is, "are both approaches acceptable?" Personally, I think it seems a little easier to use the approach I started using but, I have to admit, all the repeating code troubles me. I'm learning this on my own so I don't really have someone to ask in person about this. I'm looking for the advice of someone with some experience in these matters. Thanks in advance for any help you can provide.

    My question is: "is this
    the 'common' way of doing things?" Basically yes. There are variations but the general idea is the same.
    You might want to look at this...
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    And this....
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html
    Another question
    is, "are both approaches acceptable?" Your original approach would become unmangeable in a larger application. But other than that yes.
    Personally, I
    think it seems a little easier to use the approach I
    started using but, I have to admit, all the repeating
    code troubles me. And the repeating code, from the perspective of learning, is probably a good thing to a certain extent. It allows you to recognize patterns and thus question alternatives. And then when you move on to something else more sophisticated you will understand why it better/appropriate as opposed to someone who just does it one way without ever understanding why. (And for small applications you do use exactly the method you are doing rather than using more sophisticated and thus complex solutions.) Additionally you are more likely to be able to more quickly debug applications because you will be able to seperate out core problems relating to the database versus problems that are related to the intermediate layers.

  • A few questions from a novice

    Hi all
    My leopard was an unexpected gift from my parents for my daughter and I, I'm sure you can all imagine how delighted we have been and what an exciting new world that has begun to open up for us.
    However I have hit a wall a few times over certain features and struggle to understand how to resolve these problems.
    I find online advice either assumes I have a knowledge of mac's I just don't have or apple's own solutions to be a bit Ronald MacDonaldspeak: "Hey great, now you've got a mac, cool, have a nice day.."
    I've made two phone calls, for 30 minutes, and then an hour, to technical support who couldn't even get my password going.. ( though they did make a point of telling me I was getting it wrong when I wasn't!)
    Anyway, when you've stopped laughing out there guys can any of you help me with a few points:
    a.)I can recieve e mail on my mac address but it won't send it.
    b.)A friend has sent me a video greeting on my old BT Yahoo e mail address but I can't view it despite downloading windows Media for mac which started going on about something called Stuffit???!!
    c.)Whenever I try to go online it fails and I have to restart once or twice.
    d.) I can't get pictures on a CD onto i photo.
    e.) I want to do sound and cam to friends on msn ,Yahoo messenger etc.I don't know anybody on i chat nor can my non-apple user friends download a version of i chat to connect from their side with mine - is this merely political, that it doesn't work because of some rivalry between the rest of the cyber world and apple?
    If you can help I'd be most grateful but remember I really don't understand jargon jargon!
    Message was edited by: kevinh08

    kevinh08 wrote:
    a.)I can recieve e mail on my mac address but it won't send it.
    Check the settings for your "Outgoing mail server (SMTP)". The information for that should be available from your ISP.
    b.)A friend has sent me a video greeting on my old BT Yahoo e mail address but I can't view it despite downloading windows Media for mac which started going on about something called Stuffit???!!
    You may want to check into [Flip4Mac|http://www.flip4mac.com/wmv_download.htm], which will allow you to view Windows Media videos with Quicktime on the Mac.
    c.)Whenever I try to go online it fails and I have to restart once or twice.
    Can you elaborate on that? What happens when it fails?
    d.) I can't get pictures on a CD onto i photo.
    Again, more information would be helpful. You should be able to simply drag the pictures from the CD onto the iPhoto window. Again, what happens when it fails?
    e.) I want to do sound and cam to friends on msn ,Yahoo messenger etc.I don't know anybody on i chat nor can my non-apple user friends download a version of i chat to connect from their side with mine - is this merely political, that it doesn't work because of some rivalry between the rest of the cyber world and apple?
    iChat works with AOL IM, but I believe not with MSN or Yahoo. I agree that it's dumb that the two camps aren't compatible, but it's not an Apple vs The World situation.

  • Rendering question from a novice in the middle of an editing project

    Hi,
    I'm editing a 50 min program that is a live 2 camera shoot. Both consumer dv cameras, one new & one five or more years old. So as you can imagine, theres a real quality diff between the cameras, both in brightness values as well as color values.
    So I tried experimenting in FCP color correction, just picking a shot & fooling around with brightness & color. Trying to get a feel for how they work etc. I never intended to render any of it. Then I went back to cutting for a few days & suddenly the program was "auto rendering". I didnt see a way to undo that at the time, so I've since continued cutting & saving, but now I'm ready to really tackle color correcting.
    Before I do any wholesale correction to a camera shot, I want to undo all of that testing that the program auto rendered.
    How do I do that?
    Thanks
    G5 tower   Mac OS X (10.4.2)  

    Before I do any wholesale correction to a camera shot, I want to undo all of that testing that the program auto rendered.
    Well, if you want to undo all of what you've done - that is, filters & rendering - select all the affected clips and use the Remove Attributes feature.
    To access that feature, either Control-click and select it from the contextual menu or press Option-Command-V on your keyboard. In the dialog box that comes up, select 'Filters' from the Video list, then click OK.
    If you only want to undo the rendering (but leave the filters applied for further tweaking), a neat trick I learned here is to simply use the Clip Enable toggle. That is, select your clips and press Control-B once to disable them, then press Control-B again to enable those clips.
    (In case it's not obvious, toggling clips trashes all associated render files)

  • Question from a novice user

    Hi, I need to develop an application that
    reads and writes complex data-centric XML
    documents to an Oracle database.
    I know about XML SQL Utility for Java but...
    which choice do I have if I can't use the Java environment?
    Should I write all my code or there is some other helpful utility? What about PLSXML?
    Thanks in advance for any help,
    Carla Delmonte
    null

    If you have Oracle8i, then you can use the "xmlgen" package that comes with the Oracle XML SQL Utility (and wrappers its Java functionality in a PL/SQL package) to do everything you can do from a Java program from PL/SQL. The XMLGEN package is created by running the "xmlgenpkg.sql" script in the ./lib directory that comes with the Oracle XML SQL Utility.
    The PL/SQL package function xmlgen.insertXML() should do what you need.
    The XML Parser for PL/SQL (not the same as PLSXML utilities) also is a PL/SQL wrapper on the Java XML Parser, and exposes the full functionality of the Java implementation through a set of easy-to-use PL/SQL packages.
    PLSXML is not really an option since it does not support putting XML into the database, only getting it out.

  • Why can't I post a question from my new system?

    Hello All:
    I was just trying to post a question from my new mbp but it wouldn't allow me to do anything.  It continually gave me a message highlighted in 'red' that i was;t allowed to modify or post anything.  I've been asking questions for quite a while and have never seen this.  I also happen to have my older bmp, also logged onto the 'Apple Discussions' site, open beside me.  Can anyone explain this to me please?  BTW, my new system obviously has Yosemite on it while my older bmp has Lion.  Thanks in advance, to all those who respond.
    Regards,
    Ciaochiao

    ChitlinsCC, I'm adding your reloaders to my article on how to make using ASC easier.
    Here is my ASC work flow...
    1) I login.
    2) Block the automatic 30 minute logout.
         Unless you do something every thirty minutes you get logged out.  The forum software waits to tell you this as long as it can to keep you in suspense  ;-) . Filling out a reply is the exception to the thirty minute window.
            Start an auto reloader.
    Safari = SafariTabReloader
    Firefox = ReloadEvery: "Reload web pages automatically"
    Others = Reloaders | Cerberus - Support Center
      You need to pick a page that will reload over time without stalling out. It's ASC.  I've found my profile display the best to use. I get my Profile page after some  logins.  It's ASC.  Change rccharles to your apple id.
    https://discussions.apple.com/people/rccharles?view=discussions
    Reply technique
    Open a new browser window.  Pick some discussion.  Open a reply window.  As long as this reply window is open, you will stay logged in.  The 30 minute times is reset as needed by the ASC software.
    3) I open another window to do my normal ASC browsing.
    4) I have a FireFox bookmark to goto the discussions that I have participated in. I've modified it to add on the content stuff.
             turingtest2 recommends. Change rccharles to your apple id:  
    https://discussions.apple.com/people/rccharles/content?filterID=participated~obj ecttype~objecttype%5Bthread%5D
    5) Use turingtest2's generated links with the /content suffix as browser bookmark to the ASC discussions: 
    Site map of Communities and Categories
    https://discussions.apple.com/docs/DOC-2463
    6) Adjust the ASC web page layout.
    For FireFox
    I run with Hiroto's modification to user content.  This is the only way these forums are readable for me.  How to adjust the format and layout of ASC Web Pages:
    https://discussions.apple.com/docs/DOC-7501
    For Safari
    "ASCPowerTools is a Safari Extension designed to give more control"
    http://www.etresoft.com/ascpowertools
    7) Read and answer my old posts.  I kind of memorize the time I last posted. ( It's way bad that apple eliminated the last poster to a thread. )
    8) I use tabbed browsering.  From a list of discussions, hold down the command key then click on the link. You get two tabs this way. The original window will keep where you have been.

  • HT201272 I have recently picked up an Apple TV. When I go to the movies tab, there are less movies available there than there are in my i-Tunes account. I've done some looking around at questions from others, but haven't found an answer that works for me.

    I have recently picked up an Apple TV. When I go to the movies tab, there less movies available there than what is available in my i-Tunes library. I have 38 movies showing in my library but only 23 are showing in the Movies tab on the Apple TV. After researching this a little, there are only 23 movies showing under Purchased in the Quicklinks of my i-Tunes account. The majority of my collection are digital copy downloads that came from DVD purchases. Some of the missing movies were added in the past couple of months, the rest are a year-or-so old. I have done some looking around at questions from others, but I have not found an answer that will fix my situation. How do I update my library to get ALL of my movies to reflect that they were "Purchased"(as it says they were in their Properties)?

    Biggles Lamb wrote:
    Chill out guys, getting personal will never ever change another persons view, right or wrong, they are entitled to them .
    The pros and cons of to CC or not to CC have been done to death
    Its a fact the CC model will work for some, especially newbies and small businesses.
    The risks associated with the CC model have been well documented.
    For long term users of CS perpetuals its generally a large hike up in cost compared to the upgrade system.
    Then there are the....... Adobe can rot it hell...... group who will never subscribe
    To each their own, you do the math to suit your cashflow whatever that is and then make an informed decision
    To those on the CC model, I'd like to offer some practical advice.........do not allow automatic updates.........make regular backups............develop an exit strategy of alternatives for when you can no longer afford the subscription costs............never ever assume that the Adobe update is bug free
    Enjoy your cloud
    Col
    Thank you for that post, and the advice. I just happen to be one of those who it does work for. I've been around long enough to know that CC isn't going to work for everyone(the large publishing/radio/web company I work for isn't upgrading to CC because of the costs involved). But it does for me as I potentially venture out into the full-time freelancing world and away from the more structured big office environment. I can't make decisions based on what is best for anyone else, or what will hurt or help Adobe. Just what affects me, and that's all.
    Brent

  • May be slightly simple question from a new Mac user: Why can't I quit safari? I cannot quit it from top menu bar neither to do it from dock? All other apps are working normally.

    May be slightly simple question from a new Mac user: Why can't I quit safari? I cannot quit it from top menu bar neither to do it from dock? All other apps are working normally.

    Or you can actived the right button on your magic mouse and click on they icon in the dock. then you select "stop" and it's out of your dock.
    Greetings
    *update: Sorry, my mistake! I didn't read your message correct! Sorry for the inconvience!

  • TS2446 what do i do if i failed one of my security questions from forever ago from trying to buy a song after changing my password?

    I have been locked out and am unable to purchase anything. I just got a new laptop, and it asked me my security questions from forever ago. How do i fix this?

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

  • Need recommend to build MB + CPU + VGA ....a question from Vietnam

    1st, sry my E is not good...
    My job is working with 60% Pr 40% Ae (full HD)
    I need recommend to help me choose 3 option
    CPU + MB (in VN they same price)
    1.   i7 950 + X58
    2.   i7 2600 + p8z68
    3.   2xE5520 + asus Z8NA (2nd)
    VGA (in VN they same price)
    1.   GTX 570
    2.   Nivida Quadro 1800 (because quadro 2000,3800,4800.. all supported is very difficult to buy it in VN) Quadro1800 can be GPU hacked ? (2nd)
    My PSU 750W
    RAM DDR3 Gskill buss 1333 4x4gb
    a question from Vietnam, need to help so much
    Thanks alot
    Waitting for Harm recommend

    I concur with Harm's recommendation. The Quadro 1800 is obsolete: It is based on the equally-obsolete GeForce 9600 GT but with only a 192-bit memory bus instead of a 256-bit memory bus. As such, the only memory configuration that was available on the Quadro 1800 was 768MB. Unfortunately, Premiere Pro CS5 requires a minimum of 765MB of free, unused graphics memory just to even enable GPU accelerated mode at all even with the hack. But since Windows itself eats up some of that 768MB, you'd be left with less than 750MB of free, unused graphics RAM with that Quadro 1800. As a result, Premiere Pro CS5 will be stuck in software-only mode even with the hack if you have the Quadro 1800 as the primary card.

  • HT5570 I do not remember the questions from my Apple ID to reset password

    I do not remember the questions from my Apple ID to reset password

    Hi Dima,
    If you are having issues with the Apple ID security questions, you may find the following articles helpful:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    Apple Support: Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/ht5312
    Regards,
    - Brenden

  • Security Questions from a Select List or Drop down Service Provider Edition

    Hello,
    Can we fetch security questions from the drop down or a select list in Service Provider Edition. We have a requirement to select multiple security questions during registration.
    Please advise.
    Regards
    Vinod

    HI
    Welcome to the Forum...
    You cannot put all the values in a single parameter field so you need to select each field for each parameter...
    Better you post it in this link for more reponses:
    Reporting and Printing

  • I cannot find my question from last night. I saw the instruction from jscher2000 but I find nothing like what he decribes.

    I cannot find my question from last night. I saw the instruction from jscher2000 but I find nothing like what he decribes. My question was "Firefox 22 worked on Windows 7 but 23 does not"

    hello MLP99, you can find your prior questions & answers under this link (once you're logged into support.mozilla.org with your account): https://support.mozilla.org/questions?filter=my-contributions

  • Code that handles a set of questions from database and place it on JSP

    Hi,
    How to write a code that handles a set of Quiz questions from database and place it on JSP page..
    Thanks in advance
    Haritha

    975033 wrote:
    Hi,
    I hav got the answer from you r previous link, but not completly. I need help regarding on how to do code that handles a set of questions from database and place it on JSP.
    Any help is highly appreciated.Yes but what kind of help do you expect to get? What kind of help do you think is possible through something as cold and distant as a forum, where you clearly require personal guidance and tutoring?
    If you are going to answer "example code", I should warn you that the answers are not going to be to your liking.

Maybe you are looking for

  • Can we have a tooltip text, formatted on 2 and more rows

    Hello, I am interested if it is possible (in List GUIBB) to make a tooltip(on a list cell), containing additional description, formatted on 2 and more rows like bulleted list. As I can see the "tooltip" field in the fields description(parameter struc

  • APPLE TV 2 PROBLEMS - ENDLESS BUFFERING

    Why does my AppleTV keep freezing and giving me messages like movie ready to watch in 237 minutes?  I have restored the device to factory settings and I have ensured software is current.  I have also contacted my Internet provider (Shaw in Canada) an

  • LR4 problem

    I have loaded and used for many months LR4 on my desk top HP 2509 and my lap top Dell Insperion, but now my desk top will not load my LR4 program.  My screen say " The application was unable to start correctly (0xc000007b) Check OK to close the appli

  • Would like to add pictures to claim, option to upload does not exist

    I had a cake delivered to my mother in law and it was totally different than what was advertised. I filed a dispute with the seller and stated that the item was not as described. Seller went ahead and escalated it to a claim while replying substituti

  • Yosemite upgrade slowing down my Macbook

    Hi - I recently upgraded to Yosemite OS X and it has slowed down my Macbook (2011 model, 2Gb RAM). Everything runs painfully slow - booting up, opening any applications, opening Chrome, Thunderbird - EVERYTHING. Its been suggested I add RAM but not b