Controle app - console

Hi Experts,
Maybe I'm thinking to hard or some, but I can get it! I'm studying java in my own free time, so please bare with me!
I have an UML diagram and need to test it with an console app:
Cat
- name : String
+ Cat (name : String)
+ getName() : String
+ makeSound() : Voidthe code for the UML is this:
public class Cat{
  private String name;
  public Cat(String name){
    this.name = name;
  public getName(){
    return name;   
  public void makeSound(){
}The console app would be:
public class Test{
  public static void main(String[] arg){
    Cat cat= new Cat("Silly cat");
   System.out.println(cat);
}But this gives me not the string back! How can I really test this app, because I think I'm overlooking this.
Thanks!

N1mrod wrote:
Hmm I get
Kat@7987aecaBut I saw idd, that you need to put System.out.println(cat.getName())You get this because you were trying to print the String representation of an Object (cat). So what exactly is the String representation of an Object? This comes in the form of a toString() method that returns a String. If you do not explicitly override the toString() method then it looks up the chain of super classes for a toString() method. In your situation the only superclass is Object. Objects toString() method will return the address that the Object itself is stored at which isn't very descriptive as the representation of a String now is it.
Mel

Similar Messages

  • DS6 Control Center console problems

    We are currently using DS5.2 for Windows.
    I have installed DS6 for Windows since we are considering updating.
    So far I have not been able to get the Control Center console web app to start.
    Any thoughts on what I can do or where I should look to resolve this?
    Thanks,
    Mike
    Here are some details:
    C:\Sun\JavaES5\share\webconsole\bin>smcwebserver.bat status
    Sun Java(TM) Web Console is running
    C:\Sun\JavaES5\share\webconsole\bin>smcwebserver.bat restart
    Shutting down Sun Java(TM) Web Console Version 3.0.2 ...
    Cannot determine if console stopped gracefully; forcing shut down
    The console is running.
    C:\Sun\JavaES5\share\webconsole\bin>wcadmin list -d
    Deployed web applications (application name, context name, status):
        console  ROOT            [stopped]
            Time:   04/13/07 11:49:49
            Base:   C:\Sun\JavaES5\share\WEBCON~1\webapps\console
            Debug:  0
            System: true
        console  com_sun_web_ui  [stopped]
            Time:   04/13/07 11:49:49
            Base:   C:\Sun\JavaES5\share\WEBCON~1\webapps\com_sun_web_ui
            Debug:  0
            System: true
        console  console         [stopped]
            Time:   04/16/07 08:43:47
            Base:   C:\Sun\JavaES5\share\WEBCON~1\webapps\console
            Debug:  0
            System: true
        console  manager         [stopped]
            Base:   ${catalina.home}/server/webapps/manager
            Debug:  0
            System: true
    No library jar files registered.
    No login modules registered.
    Shared service properties (name, value):
        sun.directory.dcc.path.var  C:/Sun/JavaES5/DSEE/var/dscc6
        sun.directory.dcc.path.slapx  C:/Sun/JavaES5/DSEE/ds6/bin/dsadm.exe
        sun.directory.dcc.path.sample.ldif  C:/Sun/JavaES5/DSEE/ds6/ldif/Example.ldifexcerpt from console_config_log:
    16-Apr-2007 | 08:48:57 | INFO  | The console instance "console" is stopping.
    16-Apr-2007 | 08:49:42 | ERROR | Unexpected error determining status of server:
         no applications unloaded
    16-Apr-2007 | 08:49:42 | ERROR | Cannot determine if console stopped
         gracefully; forcing shut down
    16-Apr-2007 | 08:49:42 | INFO  | The console instance was forced terminated.

    Thanks for the response.
    I checked and it was already registered.
    After a bit more digging, I found the problem.
    Instead of netstat -a -b showing that swc.exe was listening on port 6789, it showed db2jds.exe (which is the DB2 JDBC Applet Server service). After shutting this service down and restarting smcwebserver, I was able to access the app.
    It is odd that the .bat files never reported the port conflict and indicated the web server was up and running.
    Hopefully my experience will help some other DB2 users....
    Thanks again,
    Mike

  • HP Printer Control app for Windows 8

    HP Printer Control enables you to set up and access your connected HP printers.
    We hope that the HP Printer Control app enriches your experience with HP printers and Windows 8. Please tell us about your experience -- what you like, what you don’t like, issues you may encounter, and areas where we could make the app better for you.
    For more information, visit the HP Printer Control App support document.
    Supported Printers:
    HP Color LaserJet CM1300 MFP
    HP Color LaserJet CM2320 MFP
    HP Color LaserJet CM3530 MFP
    HP Color LaserJet CM4540 MFP
    HP Color LaserJet CP1510
    HP Color LaserJet CP2025
    HP Color LaserJet CP4025
    HP Color LaserJet CP4525
    HP Color LaserJet CP5220
    HP Color LaserJet CP5520 Series
    HP Color LaserJet CP6015
    HP Color LaserJet Pro MFP M176
    HP Color LaserJet Pro MFP M177
    HP Deskjet 1000 J110 series
    HP Deskjet 1010 series
    HP   Deskjet 1050 J410 series Scan
    HP Deskjet 1510 series
    HP Deskjet 2000 J210 series
    HP Deskjet 2020 series
    HP   Deskjet 2050 J510 series Scan
    HP Deskjet 2510 series Scan
    HP Deskjet 2520 series Scan
    HP Deskjet 2540 series
    HP Deskjet 2640 series
    HP Deskjet 3000 J310 series
    HP Deskjet 3050 J610 series
    HP Deskjet 3050A J611 series
    HP Deskjet 3070 B611 series
    HP Deskjet 3510 series
    HP Deskjet 3520 series
    HP Deskjet 3540 series
    HP Deskjet 4510 series
    HP Deskjet 4610 series Scan
    HP Deskjet 4620 series
    HP Deskjet 4640 series
    HP Deskjet 5520 series
    HP Deskjet 6520 series
    HP Deskjet F4500 series
    HP Deskjet Ink Adv 2010 K010
    HP Deskjet Ink Adv 2060 K110   Scan
    HP Deskjet Ink Advant K209a-z
    HP Deskjet Ink Advantage K209a-z   and K209g
    HP Envy 100 D410 series
    HP ENVY 110 series
    HP ENVY 120 series
    HP ENVY 4500 series
    HP ENVY 5530 series
    HP LaserJet 100 color MFP M175
    HP LaserJet 200 color M251
    HP LaserJet 200 color MFP M275
    HP LaserJet 200 color MFP M276
    HP LaserJet 400 M401
    HP LaserJet 400 MFP M425
    HP LaserJet 500 color MFP M570
    HP LaserJet 600 M601 M602 M603
    HP LaserJet Enterprise 500 color   M551
    HP LaserJet Enterprise 700 color   MFP M775
    HP LaserJet Enterprise 700 M712
    HP LaserJet Enterprise color flow   MFP M575
    HP LaserJet Enterprise flow MFP   M525
    HP LaserJet Enterprise flow MFP   M830
    HP   LaserJet Enterprise M4555 MFP
    HP LaserJet Enterprise M806
    HP   LaserJet Enterprise MFP M725
    HP LaserJet M1522 MFP
    HP LaserJet M9040 MFP
    HP LaserJet M9050 MFP
    HP LaserJet P1100
    HP LaserJet P1566
    HP LaserJet P1600
    HP LaserJet P2050
    HP LaserJet P3010
    HP LaserJet P4000
    HP LaserJet P4010
    HP LaserJet Pro CM1415
    HP LaserJet Pro CP1020
    HP LaserJet Pro CP1520
    HP LaserJet Pro M1536dnf MFP
    HP LaserJet Pro MFP M125-M126
    HP LaserJet Pro MFP M127-M128
    HP LaserJet Pro MFP M435
    HP LaserJet Pro MFP M521
    HP   LaserJet Professional M1132 MFP
    HP LJ300-400 color M351-M451
    HP LJ300-400 color MFP M375-M475  
    HP Officejet 100 Mobile L411
    HP Officejet 150 Mobile L511
    HP Officejet 2620 series
    HP Officejet 4500 All-in-One   G510g to m
    HP Officejet 4500 G510a-f
    HP Officejet 4500 G510g-m
    HP Officejet 4500 G510n-z
    HP Officejet 4500 Wireless   All-in-One G510n to z
    HP Officejet 4610 series Scan
    HP Officejet 4620 series
    HP Officejet 4630 series
    HP Officejet 6100
    HP Officejet 6500 E710a-f
    HP Officejet 6500 E710n-z
    HP Officejet 6600
    HP Officejet 6700
    HP Officejet 7000 E809a
    HP Officejet 7000 Wide Format   Printer
    HP Officejet 7110 series
    HP Officejet 7500 E910
    HP Officejet 7610 series
    HP Officejet Pro 251dw Printer
    HP Officejet Pro 276dw MFP
    HP Officejet Pro 3110
    HP Officejet Pro 3610
    HP Officejet Pro 3620
    HP Officejet Pro 8100
    HP Officejet Pro 8500 A910
    HP Officejet Pro 8600
    HP Officejet Pro X451dn Printer
    HP Officejet Pro X451dw Printer
    HP Officejet Pro X476dn MFP
    HP Officejet Pro X476dw MFP
    HP Officejet Pro X551dw Printer
    HP Officejet Pro X576dw MFP
    HP Photosmart 5510 series
    HP Photosmart 5510d series
    HP Photosmart 5520 series
    HP Photosmart 6510 series
    HP Photosmart 6520 series
    HP Photosmart 7510 series
    HP Photosmart 7520 series
    HP Photosmart B010 series
    HP Photosmart B109a-m
    HP Photosmart C4600 series
    HP Photosmart C4700 series
    HP Photosmart Ink Adv K510
    HP Photosmart Plus B209a-m
    HP Photosmart Plus B210 series
    HP Photosmart Premium C309a-f
    HP Photosmart Premium C309g-m
    HP Photosmart Premium C309g-n
    HP Photosmart Premium Web   C309n-s
    HP Photosmart Wireless B109n-z
    I work for HP.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution".

    Hi qunbea,
    Have you tried using the HP Printer Install Wizard or downloading the printer drivers and software from hp.com?
    Supported Printers for Windows 8 and Windows 8.1
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03168175&lc=en&cc=us&destPage=document&dlc=en
    If your full printer model is "HP Photosmart e-All-in-One Printer - D110a" then here is the link to download the software from hp.com.
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?cc=us&dlc=en&lc=en&product=4023246&task=&
    - Carolyn
    Although I am an HP employee, I am speaking for myself and not for HP.
    * Click the KUDOS star on the left to say “thanks” for helping!
    * Please mark a reply “Accept as Solution” if it solved your issue so others can find it.

  • Printer control app for iphone

    is it possible to roll back to a previous version of the Printer Control app for iphone?  I recently and stupidly updated the HP Printer Control app when offered through itunes on October 30 and have lost all the functionality I previously had to print directly from my iphone to my photosmart 7520.  Previously I could print whatever pages I chose from Safari and could change the print settings for either draft or normal, colour / black & white before printing.  Now when I try to print a page, you don't get the option to just print page 1 and it wastes ink.  If I open a pdf (all I've tried so far) document within this new AiO Remote app - even though my printer is listed and supposedly set up - I can't print at all!  I desperately want to ditch this abysmal update and go back to the version that worked perfectly.  I have conctacted Apple and they were unable to help as it's a third party app and referred me back to HP.  Does anyone know how to do this?

    Hi brattynat. I have found a few older documents which might help you revert back.
    Just to clarify, when you print from Safari, what are you clicking exactly to start your printing process?
    How do I downgrade an iPhone app to a previous version?:
    http://www.iphonefaq.org/archives/971543
    Recover Older Versions of iPhone Apps After Updating:
    http://gigaom.com/2010/08/25/recover-older-versions-of-iphone-apps-after-updating/
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Is there port of "HP Printer Control " app for Windows Phone?

    Are there port of "HP Printer Control " app for Windows Phone? This is at the same time request if there is not.
    Regards.

    Hello Zubru,
    I saw your post, good question! There are no apps at this time available for the windows phone however here is the link to the HP ePrint site to keep an eye out for any possible changes to that.
    Click the KUDOS star on the left to say “thanks” for helping!
    Please mark a reply “Accept as Solution” if it solved your issue so others can find it.
    I work on behalf of HP.
    I worked on behalf of HP.

  • In my macbook pro 15 inch mid 2012 model, my cpu and gpu will get very hot, when gaming or rendering sometimes over 200F. The fans only spin at max about 2900 rpm, when their max is 6400. I downloaded a fan control app, but how can i fix it?

    In my macbook pro 15 inch mid 2012 model, my cpu and gpu will get very hot, when gaming or rendering sometimes over 200F. The fans only spin at max about 2900 rpm, when their max is 6400. I downloaded a fan control app, but how can i fix it?

    Hi rhaughan,
    I see that you have concerns about your operating temperature of your computer while using resource-heavy applications such as gaming applications. I have an article that will address some of the concerns you have mentioned:
    Mac notebooks: Operating temperature - Apple Support
    http://support.apple.com/en-is/HT201640
    While there are third-party utilities that measure the temperature of a notebook computer, it is important to understand that these utilities are not measuring the external case temperature. The actual case temperature is much lower. Never use third-party applications to diagnose possible hardware issues—instead, contact Apple or go to an Apple Retail Store or Apple Authorized Service Provider.
    You should also see this article for even further information about your fans:
    Learn about the fans in your Mac - Apple Support
    http://support.apple.com/en-is/HT202179
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • How can I control the volume in a Appletv movie from my remote control App. In my IPad ?.

    How can I control the volume in a Apple Tv movie from my remote control App. In my IPad ?.

    There is not now, nor has there ever been a version of flash for any iOS device.
    Adobe has abandoned mobile flash, so there never will be.
    Browsers like iswifter or photon may work for you, but don't hold your breath.
    Check app store for an app of whatever game you want.

  • The hp printer control app can not find my eprint email.

    I have an iPad 2 and I've installed the hp printer control app on it. The app can not find my eprint email which I've typed in several times. I have checked the eprint email on the printer control panel to make sure it is the correct eprint email. The printer is a office pro 8600.

    Dear Diavonex:
    I DID what you've recommended: turning off the router. NO SUCCESS.
    Best Regards,

  • HP Print Control App for Iphone

    I have down loaded the HP Print Control App from the app store.  I am unable to connect to my macbook. I have spoken with Apple and they have indicated this is an hp issue Please help if anyone knows a way to mak this work

    Hi coolshooter,
    I'm sorry to hear you are having issues with HP's Printer Control app.
    To be able to further assist you can you please provide the following information;
    1)            What is the model/product number of your HP printer?
    2)            What operating system are you running on your MacBook?
    I have included some information regarding HP's Printer Control app from Apple and HP.
    iTunes Preview of HP Printer Control App
    https://itunes.apple.com/us/app/hp-printer-control/id469284907?mt=8
    HP Printer Control for iPad, iPhone, and iPod Touch
    http://www8.hp.com/us/en/products/smart-phones-handhelds-calculators/mobile-apps/app_details.html?ap...
    HP Printer Control Mobile App FAQs
    https://h10025.www1.hp.com/ewfrf/wc/document?docname=c03561640&lc=en&cc=us&dlc=en
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • HP Printer Control app offers only one of the printers on network. How to add a second printer.

    The original "eprint home and biz" recognized both printers on my network.  After upgrade, have lost one printer and see no way to add it.  HELP, please?!?

    Unfortunately the Printer Control app only supports printers manufactured from 2010+ that are ePrint capable. That is why it is not working with your 2710.
    And it looks like the HP ePrint app (formerly the ePrint Home& Biz app) has removed support for some of the older model printers with its most recent update. 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Hp Printer Control App

    I have got a HP ENVY 4502 priner, i installed the hp printer control app it has quit workin and the store cant repair it so i went to uninstall it from the apps and all it says there is remove from start its not givin me choice to uninstall what do i do

    Hi, What is your device ? I can't find it under Android. Regards.

  • HP Printer Control App won't print to Photosmart D110

    The HP Printer Control App (Android) see's my Photosmart D110 and successfully aquires the name, IP address, ink levels and other information but just below the listing for the printer itself is indcated, "unavailable". I have just printed wirelessly to the D110 from a laptop. Is there something I must do to make the printer "Available" through "HP Printer Control" from my Galaxy Note 10.1?
    Thanks
    mtcstle

    I own a Samsung phone myself, and generally any of the print functions you see in office apps and web browsers are actually added in by samsung with their own software. This is why it is telling you only samsung printers can be used. If you save files in Polaris you can open them within the HP Eprint Home and Biz app and print them.
    If you are saving the files as a PDF it will work fine locally without actually using the eprint service, however if they are MS Office type documents like .doc, .xml etc, you will have to set up eprint on the printer and activate the app. The reason for this is that Office documents are rendered on the cloud servers in order to print. The advantage of setting all of this up is that you can print files even when you aren't at home.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • HP Printer Control App installed on my pc windows 8 but wont update in windows store

    Ii have downloaded the hp printer control app on my desktop pc which is windows 8, it shows my printer which is the HP Photosmart B110a its product number is CN245B. It keeps saying in my windows store app that it needs to be updated as other apps do but it just says pending constantly and theres no change ive used the app to get software for printer such as certain wizards and such. but it wont update ive got a hp printer control app on my ipod touch too and this also has no trouble picking up the printer and works fine, is it because ive got windows 8? please can someone help as its not right for it just to be there stuck not updating, thanks
    lollykaye2005

    A bit of a shot in the dark, but this appears to be an issue with pulling down the update from the Windows Store.  I have not run into this issue directly, but this thread has a lot of information.
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/windows-8-apps-are-pending-...
    The one tidbit that might help here from that thread is:
    "finally I found a solution. go to troubleshooting (press win+w >then type troubleshooting). now a window opens in desktop. click "fix problems with windows updates". now click next. windows will search for solutions, but it wont find anything. then windows will ask if u want to try in administrator mode. click yes. windows will find and solve the problem. that's it."
    I work for HP.

  • Hp printer control app for ipad cannot see my printer

    Hello Everyone,
    I downloaded hp printer control app for ipad & hp eprint app. the eprint could see my printer (hp 6450 all in one printer) but I cannot print documents. The hp printer control app cannot see my printer, what can i do to print my documents.
    Peter

    Hi grandslam36,
    I see that you're trying to print using your iPad.  I would take a look at the document below.
    Hp Photosmart 5520
    Let me know how it goes. 

  • How do I get the remote control app to work for a Sony HDD Hi Res audio player?

    Can't get the iPhone remote control app to work for my HDD Hi Res Audio player.  The app can "find" the player and I can turn on the power with the app but then can't get it to go to my music - can only use the "demo" tool with the demo info. What am I doing wrong?

    Good day cb94!
    I'd like to see if I can assist you with the Hi-Res Audio player. Please provide us the model, use this link to verify the model: http://esupport.sony.com/ Thank you! - Paul

Maybe you are looking for

  • Itunes 10.4.1: does not sync videos and does not communicate with outlook calendars

    Hellos, Since upgrade to itunes 10.4 I have found the following problems and no solutions yet from apple (altought version 10.3 worked flawlessly): 1)When you check "include videos" on the sync photos tab, you get an error. The "solution" is to unche

  • Apple tv will not stream more than one song maybe two

    Playing through apple TV.  One or two songs play then the next comes up but will not load. Shows the album art and song etc. but the little load symbol just spins.  Have restarted both airport and apple tv no luck getting past one or two songs?  Any

  • Break a table

    I have a long table in Pages, that I want to break up and insert into an iBook Author doc. I don't see a way to break a table in pages. (Can be done in Word, actually, mayby I'll just use word.) But would still like to know if it's possible to do it

  • Feature Request: Opcodes in DNG Camera Profiles?

    We now have V1.3 of the DNG spec, with support for opcodes, which is great. Now, can we the ability to put opcodes in DNG camera profiles? Given all the hard work has already been done to support opcodes, this would seem to me to be a really value ad

  • An unexpected and unrecoverable problem

    An unexpected and unrecoverable problem has occurred because of a program error. Photoshop will now exit.         How do I fix this problem? I have recently upgraded my OS on my iMac and now I can't get into Photoshop Elements 2.0. what do I need to