ToString() or not toString() is the question

How do i write a toString method for an object?
like this??
public Object toString(){
     return currentObject;
}because if it is, it isn't workin'...

You write it however you want.
What do you want a string representation of your object to look like? For many classes, it's not really necessary, but can be useful for debugging.
For instance, if you have a Person object with lastName, firstName, birthDate, and address fields, you might choose to just have toString return lastName + ", " + firstName. Or you might want to include all the fields. It's entirely up to what your needs are for that class.
I don't know what you think currentObject is though.
And toString returns String, not Object.

Similar Messages

  • Hi .. I can not re- set the questions of confidentiality in order to forget the answers in my account

    Hi .. I can not re- set the questions of confidentiality in order to forget the answers in my account

    If you aren't getting the reset link on the Password & Security section of your account on http://appleid.apple.com then you don't have a rescue email address (an alternate email address is different), and you won't be able to add one until you can answer your questions - you will have to contact Support in your country to get the questions reset.
    Contacting Apple about account security : Contact Apple for help with Apple ID account security
    If your country isn't on that page then try this form and explain and see what they reply with : https://ssl.apple.com/emea/support/itunes/contact.html
    When they've been reset you can add a rescue email address for potential future use : Manage your Apple ID primary, rescue, alternate, and notification email addresses

  • HT5624 how do I change the security questions on my daughters itunes account. I do not remember adding the questions and they do not make sence to me. can not figure out how to get to her  email account that it is showing for her altern

    I cant seem to be able to change the secutity questions on my minor daughters itunes account. I set the account up but I do not remember adding the security questions and they do not make sense to me. It says that the alternate account it would be sent to is@ me.com but I can not figure our how to get to it to retreive the email to reset the questions. My daughters account may have recently been hacked so I am trying to change all passwords. I changed the itunes account and added another email but I still can not change security questions in case I ever need them.
    <Email Edited by Host>

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email address from your post (it's not a good idea to post personal info on any public forum).
    The reset link on an account will only show if there is a rescue email address on it, alternate email addresses are different and not used for resetting them. If she has a rescue email address on her account then steps 1 to 5 half-way down this page will give you a reset link on the account : http://support.apple.com/kb/HT5312
    Navigate to appleid.apple.com using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    If she doesn't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use steps 1 to 7 half-way down the HT5312 link above to add a rescue email address for potential future use

  • HT5312 Help!!! I am at my wits end. Can anyone tell me how to have my security questions re-set? Truth is I do not even remember the questions and so dont know the answers  I keep getting refered to 'answer security questions' when I reset my password hel

    Hi can anyone help me with the solution to get my security questions and answers re-set?
    I have done everything the site asks you to do/ reset passwords/ confirm re-send mail and so on BUT the site still does a 360 back to answer security
    questions to confirm your identity....that is the point -I do not rememeber the questions  and certainly therefore dont remember answers to questions that I am supposed to recall....so what do I do?
    For the last 8 months ++ I've gone full circle and am at my wits end?
    Anyone have some deep wisdom on this issue
    Thanks and regards

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • HD Upper or lower interlace or not that is the question

    Ok Im a bit confused and cannot seem to get a straight direction on this. I shoot in 30fps 1080i, I capture in HD via firewire, I edit and when outputting for regular DVDs do I encode UPPER FIELD first since the source media is HD or LOWER FIELD first because it is doing to DV.
    When encoding with Media Encoder should I check the deinterlace button when encoding HD for a DV project going to encore or not check it...that is the question.
    Where is my Commedore 64 when I need it?

    Choose the correct field order for your
    export format when exporting, in this case DV.
    Choose progressive/interlaced depending on your export format when exporting. Since DV is interlaced, do not de-interlace.
    Who needs a Commodore 64 when you have a Vic 20! ;)
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • To 64 bit or not, that is the question...

    I'm finally able to build a new sytem and am wondering if 64 bit offers any advantages over what I'm doing now given what I do with a computer.  First, lets get my specs out of the way so that if anyone with similar interests can possibly help me on this decision.  As an added note, not that it makes a difference one whit, I'm going to be liquid cooling and a tad bit of overclocking may be involved.
    Shuttle SX38P2-Pro
    Seagate Barracuda 500GB 7200 RPM SATA 3.0Gb/s
    Intel Core 2 Quad Q6600 Kentsfield 2.4GHz LGA 775 Quad-Core Processor
    ASUS EN8800GT GeForce 8800GT 1GB 256-bit GDDR3 PCI Express 2.0
    CORSAIR XMS2 2GB (4 x 1GB) 240-Pin DDR2 SDRAM DDR2 800 (PC2 6400)
    Now for what I use my system for.  I'm heavily involved in graphics.  I use both the GIMP and Inkscape intensively and to their limits (which is my main reason for my new build), so this was my main reason for the quad as I've discovered that my benefits may be extraordinary.  That coupled with a buttload of ram (4 gigs) should give me a bit of futureproof to the bottlenecks I've been experiencing with my P4 1.5 from about 7 years ago that I've been experiencing lately.  I've also been known to compile extensively just due to the fact that I prefer more bleeding edge features.  I enjoy a challenge and will be willing to try out the latest widgets but am nowhere experienced enough of a programmer to try and rewrite an entire program that I didn't start to begin with.
    So, can you expound on my dilemma and elaborate to the point where I can reach an informed solution?

    jb wrote:
    I linked the two together, although they should probably have a more unified name.  Good for now I guess.
    Also, I took a stab at it and declared it Czech.  If my recognition skills were of epic fail, please correct.
    your recognition skills are superb, it's Czech - the CZ version seems to be translated version of the same article, the EN version has a bit more information, so it seems someone updated the English original sometime after the Czech traslated the article...

  • Email signatures, to (include) images or not, that is the question!

    We just had this discussion internally and decided against it.  When they work, they look good, but when they don't work, signatures full of picture place holders look terrible.  I think it really depends on what kind of business your company is in and whether there is a benefit to the recipient to get a little web page in every email you send.

    Greetings all,I am looking at options for email signatures for a client. I have used Exclaimer in the past for in-house Exchange servers and like it. I am trialing the Office365 version presently.Just looking for thoughts on if you include images any more in email signatures? I'm talking company logo at a min and a few social media icons and links at a maximum. I note gmail now block embedded images (and I'm sure they're not alone) and we're all familiar with mail clients that will block the other option, web based images and give the option of downloading them.There's much to be said for a nice looking signature I think with a good logo and but not OTT, whilst there is also much to be said for a simple text based approach and nobody receiving broken images or blocked links when they open your mail.What say my fellow spiceheads?...
    This topic first appeared in the Spiceworks Community

  • To re-install or not, that is the question?

    I have an early 2006 intel iMac with OSX 10.4.11. Little things are starting to act up, but nothing really major. IChat doesn't work properly, I lose tunes in iTunes, startup sound went on the fritz and the little beacon on the front right hand side is getting dimmer. I used to have an old Mac Powerbook 180 (1993) and periodically, I'd re-install the system from all of the floppy discs and it would work perfectly and I'd never lose any data. Sometimes, I wish I still had it. Is it a totally different world now? Can I take the start up CD that came with the iMac, place it in the slot and do a total re-install? What would happen and is this a plausible idea? Or,,, should I just leave well enough alone? I feel like I just need to do a clean up of the system. Thanks!!!

    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then quit DU and return to the installer.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

  • To Contribute or not - that is the question

    Hi folks - this is my first post here so please bear with me.
    I'm in the process of building a site for my local football
    (soccer for all US readers) team - I'm using XHTML & CSS and
    pulling it all together in DW8.
    However, with over 18 teams at all age levels, to manage the
    content on a weekly basis is going to be very time consuming, and
    not something that I want to be involved with.
    Therefore, I need a solution whereby the managers of each
    team can easily add, remove, amend content on their own pages.
    I've looked at CMS packages such as Etomite and Drupal, but
    they seem to be very restrictive on layout of the site and won't
    easily allow me to import my DW code.
    Has anyone else come across this problem and found a cost
    effective and easy (some of the managers are technophobes)
    solution?
    Hope to hear from some of you soon.
    Thanks for reading this.
    Dave
    <Keep the web alive>

    I have deployed contribute with schools and a community
    website and it has
    not been without its problems.
    However, it is not difficult to use and I think an easier
    solution than
    trying to integrate a DW site with drupal etc.
    Cost would be the decisive factor IMO
    "(_seb_)" <[email protected]> wrote in message
    news:evo451$fu6$[email protected]..
    : lawrie wrote:
    : > Hi Dave,
    : > Contribute would be a very good solution to your
    problem.
    : > I think that you may need a separate license for each
    of your 18
    managers
    : > unless they all use the same PC.
    : >
    : I personally don't consider Contribute to be very
    technophobe-friendly,
    and the major draw-back is
    : that each one of your team managers will have to BUY
    contribute, and even
    then, they will only be
    : able to update their site from ONE computer (the one they
    have installed
    Contribute on).
    : The fact that contribute is deskop software as opposed to
    browser software
    makes it very
    : constraining (and very old-fashion)...
    : Then of course any other option requires some server-side
    scripting
    knowledge, which you might not
    : want to spend time learning - however if you whish to
    practice web
    design/developpment seriously
    : you'll have to learn it sooner or later.
    : seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    : An Ingenious WebSite Builder:
    http://sitelander.com

  • To bitmap or not, that is the question

    Hello my tuning friends.
    I am running Oracle 11.2 (on Solaris 10) for a very active OLTP database, but that is also frequently used to pull reports on the most volatile critical table in the database.
    My database has anywhere from 100 to 400 concurrent users.
    Our application (REMEDY) is designed to put "tickets" in a single main table (with approx. 560 fields that 40 are clobs).
    The dilemma I need help with is whether to put a bit map index on some of the low cardinality columns or not.
    And, for that matter, many columns in this table are very low cardinality.
    My fear is that I am afraid that putting a bitmap index on a highly active OLTP table might impede performance of ticket creations (new rows in the table).
    Or, if I did it, can I have a job run every night that recreates the bitmap indexes on this table?
    But what about performance on the table between the time of rebuilding the BM indexes?
    In this case, this is a typical query that is run against our main table (containing approx. 6m records and is 16G in size).
    When I look in OEM, I see that it does a full table scan on this table, and in this case, only returns 262 records.
    Obviously, you can infer the columns in the predicate clause are very low cardinality (by the names of the columns and the values searched).
    SELECT "Main_Ticket"."SHORTTICKETNUMBER"      ,
            "Main_Ticket"."OUTAGESEVERITY"        ,
            "Main_Ticket"."OUTAGESEVERITYTEXT"    ,
            "Main_Ticket"."OUTAGESERVICESLIST"    ,
            "Main_Ticket"."OUTAGESTATUS"          ,
            "Main_Ticket"."OUTAGEOVERALLSTARTTIME",
            "Main_Ticket"."OUTAGEOVERALLENDTIME"  ,
            "Main_Ticket"."CITY"                  ,
            "Main_Ticket"."STATE"                 ,
            "Main_Ticket"."MASTEROUTAGE"          ,
            "Main_Ticket"."GROUPCREATEDBY"        ,
            "Main_Ticket"."GROUPASSIGNEDTO"
    FROM "ARADMIN"."MAIN_TICKET" "Main_Ticket"
    WHERE "Main_Ticket"."OUTAGESEVERITY"<=2
            AND NOT
                    "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'BBSG%'
                    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'CIA%'
                    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'DESIGNED%'
                    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'IHD%'
                    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'NABB%'
                    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'NCC%'
                    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'NFC%'
            )I'm assuming to put the bitmap index on "OUTAGESEVERITY".
    Not sure about GROUPASSIGNEDTO, because it uses the LIKE function and may not use the BM index if it had one.
    In this case, would a FBI be better?
    Edited by: 974632 on Feb 27, 2013 6:29 AM

    >
    clobs).
    The dilemma I need help with is whether to put a bit map index on some of the low cardinality columns or not.The whole "low cardinality" thing for bitmap indexes is very misleading - the primary consideration for bitmap indexes is whether or not your queries can COMBINE enough of them to produce high-precision access path into the table. (And, of course, they're almost always very bad news on an OLTP system).
    When I look in OEM, I see that it does a full table scan on this table, and in this case, only returns 262 records.Is this because a very small fraction of the rows have "OUTAGESEVERITY"<=2, or do a lot of them match that predicate but disappear on on the next predicate ?
    >
    FROM "ARADMIN"."MAIN_TICKET" "Main_Ticket"
    WHERE "Main_Ticket"."OUTAGESEVERITY"<=2
    AND NOT
    "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'BBSG%'
    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'CIA%'
    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'DESIGNED%'
    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'IHD%'
    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'NABB%'
    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'NCC%'
    OR "Main_Ticket"."GROUPASSIGNEDTO" LIKE 'NFC%'
    )In this case, would a FBI be better?Depends on why you get only 262 rows as a final result, and whether or not you're allowed to change the code. A simple b-tree index on outagseverity with a frequency histogram on the column MIGHT be enough if there are only a small number of rows with outageseverity = 2.
    An FBI might be more stable if this form of query is common and you are only interested in "rare" values - in which case a simple option would be to create an FBI (or virtual column with index) that was null for common values, and exposed the outageseverity for "rare" values.
    If you need to cross-check the groupassignedto at the same time as checking for "relatively rare" values, you could create a two column index where the first column exposed the "relatively rare" values of outageseverity, and the second column exposed the groupassignedto only if the first column was not null.
    You'd have to modify the SQL suitably to use the FBI's though - which is why the availability of virtual columns might be of some benefit.
    Tables with more than 254 columns are a bad idea, by the way, and get worse for every (approximate) multiple of 256.
    Regards
    Jonathan Lewis

  • How do I include the radio-button items on a second column as possible answers to the question?

    Using Adobe Acrobat Pro X, we created a fillable PDF from an existing PDF.
    One question can be answered by choosing one of four choices (radio buttons). The answers are laid out in a 2-by-2 arrangement.
    When Acrobat Pro converted the PDF into fillable format, it thought that the radio-button answers on the second column are not part of the question.
    How can I manually override Acrobat and make choices 3 and 4 part of the question.
    Please click attached screenshot for better zoom.

    George,
    i am the OP. I mistyped my email address and cannot log in to my original account.
    Thanks for your reply.
    How do I give each radio button the same name but unique button values?
    I right-clicked the first radio button, chose Properties (Ctrl+I).
    I copied the name: "What is your personal net worth in Canadian dollars including spousecommon law partner if applicable".
    I clicked Close.
    I then went into the Properties dialog window of the third radio button, which is one of the ungrouped choices. I pasted the name [What is your personal net worth in Canadian dollars including spousecommon law partner if applicable]. I then clicked Close.
    I get an error message pop up:
    A field of a different type already uses this name. Please choose a new name for the field, or change the field type to match the existing field with this name.
    What must I do now?
    Thanks.

  • Where are notes saved on the HD?

    My MacBook Pro is being sent it for repair and i have taken out the HD and connected it to my pc to back it up.
    Where can i find 'notes' that i would have saved on my Mac?
    I have some important info on them and need to access them!

    Notes are stored in
    ~/Library/Containers/com.apple.notes
    To find them in the Finder hold down the Option key and pull down to Library.  Then open the Containers folder.
    What to do with that Notes folder is the question.
    After duplicating that folder for safekeeping you can try several things.
    One is to delete the Container.plist file and see if Notes works again.
    Another might be to restore that folder from a TIme Macine backup.
    Be sure you make a copy of the current folder before you trying anything that may modify it.

  • Why wont firefox support show me the question i posted?

    I asked a question 2 days ago and im not being shown the question nor am i getting updates regarding it. I really need help with this problem.

    [https://support.mozilla.com/en-US/search?q=&num_voted=0&num_votes=&asked_by=saoda&answered_by=&q_tags=&created=0&created_date=&updated=0&updated_date=&sortby=0&a=1&w=2 Asked by saoda]
    ''(fixed name - c)''

  • The question "Adjust the location of the tabs bar" has been closed, but the solution is unsatisfactory

    The updates from version 29 on have moved the tab bar as well as changed the position & function of the address bar. The "solution" to the question in quotes above is not a solution, the question was just closed. The question owner was able to return 95% of the function the way he had it & has settled for that. I don't find it acceptable & have opted to revert to version 28. I'm worried I might have to switch browsers after using Firefox since the first beta version. Is there no way to keep the options from version 28 (mainly the position of the tab & address bars) in updated versions? I tried the Classic Theme Restorer, but it didn't help. I am running Windows 7 Home Premium 64 bit & Firefox 28 right now with no problems, but I assume as Firefox advances some functions on the older version will fail. Help please?

    I can't remember exactly what the issue was with the address bar, just that it's orientation with other objects changed. I'm an old guy ;-) & don't do change well anymore! The tabs bar was my biggest issue, if it's not directly above the window I get really messed up when browsing. I'm starting to believe I should just switch back to IE & be done with it. Firefox has been great, but realistically all I use my computer for now that I've retired is e-mail, news & a little research. Actually. I just convinced myself to use IE. Thanks for your time. Mark this solved please.

  • Warp stabilizer ?  how do get it not to distort the footage

    hi,  almost any time i try to stabilize footage with the warp stabilizer, i end up with this trippy looking footage with objects bending and distorting.
    is there any way to stabilize footage in premiere without this happening ? thanks

    THANKS GUYS !
    yep, JSS1138 i know i should have shot it with a tripod of course,  but there are times when this option is not available to us, hence the existence of this plugin. right?
    the tutorial was helpful, thanks    but it did not clearly address the question of the warping footage.  after a play around with the settings,  though i find that using "position" instead of "subspace warp" seems to get me the result i want.
    for those of you who know.... what is the trade off in increasing the smoothness?  does it make the end result more blurry?     thanks

Maybe you are looking for