How to see what happens in a code??

In a class I have this method:
    public boolean sameName(Person other)
    return  getName().equals(other.getName());
  }Is there someway that I can get a print of the return statement when I run the code with arguments?
I thought of something like:
System.out.println(return getName().equals(other.getName()));
But that don't work

public boolean sameName(Person other) {
   boolean result = getName().equals(other.getName());
   System.out.println(result);
   return result;
- Saish                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Is there any way .? how can i see. what going on my code

    hi jdev experts,
    am using jdev 11.1.1.5.0 - adfbc
    i have a amimpl classes i want to see the each and every value of the row, while perform each and every for loop
    is there any way .? how can i see. what going on my code
    can anyone paste simple video link regards this?

    Hi,
    what about debugging ? Just set a break point and run the Debugger (the red run icon). Or you use logging http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part to print out for each row whats going on
    Frank

  • What happens to FPGA code when a module it expects is missing?

    Hi Folks,
    I want to know what happens if you have FPGA code that expects a module to be present running on a system where the module is missing.
    We have a RT control system that runs on a cRIO 9014 with a 9111 backplane. There are only two modules in the slots and one of these is the Prosoft Profibus module. The biggest chunk of the FPGA code is taken up with configuring and sending and receiving using this module. Specifically the communications with the module are done by the Read (Memory) and Write (Memory) structures.
    We are developing code to use the Ethernet/IP libraries instead of Profibus in some cases. This means the communications moves from the FPGA to the RT. We are considering have the ability to switch be an option.
    My concern is that if the FPGA has code in that references the Profibus module, then it might behave badly if the module is not present.
    And so my question is if FPGA code tries to reference a module that is not present, what happens? Is it just an error? Will there be no error? What?
    Thanks!

    I am not familiar with profibus, but why not just remove the module and run it and see what happens? I'm guessing you will get an error, althougth which error I am not sure. 
    CLA, LabVIEW Versions 2010-2013

  • I found My iPhone contacts on my friends Iphone we both have 4s! But we use the same apple ID and ICloud ID! How can undo what happened? all my private stuff is now on his phone!!! help me plz!!?

    I found My iPhone contacts on my friends Iphone we both have 4s! But we use the same apple ID and ICloud ID! How can undo what happened? all my private stuff is now on his phone!!! help me plz!!?

    Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
    You can only unravel this by
    1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
    2. Sign out of System Preferences>iCloud
    3. Create a new Apple ID and open a new iCloud account with it for your own use.
    4. Import the vCard back into the iCloud contacts page.
    5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
    6. Go to the new iCloud account and delete his contacts individually.
    Of course if you have also been syncing calendars and using the same email address there are problems with doing this.

  • My screen broke and i can no longer see whats happening ive had my phone for 4 months and im under 1 year warranty im sure. they said it would cost me 200$ to replace the phone at the apple store

    my screen broke and i can no longer see whats happening ive had my phone for 4 months and im under 1 year warranty im sure. they said it would cost me 200$ to replace the phone at the apple store

    Apple's one year limited warranty covers hardware... not physical damage!

  • I bought my macbook pro for only a day, and see what happens....

    The computer is running pretty laggy a little bit and also I cannot shut it down... When i press shutdown, the only disappeared was the bar on the top. the task bar on the bottom still there.... And when i tries to shut it down by pressing the physical button.. It still wouldn't work....
    It takes longer to start the mac every time...It's really annoying
    Anyone know whats going on with my mac?... Is it possible to let apple set up a appointment and see what happens and if i wasn't satisfied with the result can apple change another one for me?(I bought the mac at my local eletronic store. Not Apple store) Thanks!

    This is a user to user forum. This is not Apple. You are covered by warranty. Stop down to your local Apple store or make an appointment online. You need to make the appointment not Apple. You also have free 90 day phone support so you can call Apple at 800-275-2273 and talk to tech support.

  • HT1657 I just rented a movie didn't see it just pressed to see if it starts all good I stopped the movie and now can't find it anywhere to see what happened I supposed to be able to see it during 24hrs as many times as I wish... Plz help to find it on my

    I just rented a movie didn't see it just pressed to see if it starts all good I stopped the movie and now can't find it anywhere to see what happened I supposed to be able to see it during 24hrs as many times as I wish... Plz help to find it on my iPhone.

    I just rented a movie today, and finished it. But now I can't find it. People say that it is in the Purchase, it's not there

  • HT1577 How to see what I have bought in the past

    How to see what I have bought in the past

    You can check the purchase history on your account via the Store > View My Account (Store > View My Apple ID on iTunes 11) drop-down menu option on your computer's iTunes (though I'm not sure if that shows in-app purchases and/or auto-renewing subscriptions) - you should seea Purchase History section on that page, with a View All link to its right

  • Does anyone know how to see what apps are still open on lion? On snow leopard you just had to slide three fingers side ways I believe thanks

    Anyone know how to see what apps are still open on lion?

    If you do not have the light in dock active, activate it, or slide three finger up to open Mission Control or in Force qQuit all  open programs are listed (even the hidden ones).
    Hope that helps..

  • TabNavigator - How to change what happens when a user clicks a tab

    I am using a TabNavigator in my Flex application and I'd like
    to be able to change what happens when a user clicks a tab on the
    TabNavigator. I'd like to be able to handle the click on the tab
    myself and stop Flex from perfoming it's default actions. Anyone
    have a clue how to do this? Any help would be much appreciated!
    Mike

    Yeah, in the following code, the changeHandler has an effect
    but the click effect does not:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    private function clickHandler():void{
    accounts.setStyle("fontSize",20);
    stocks.setStyle("fontSize",20);
    futures.setStyle("fontSize",20);
    private function changeHandler():void{
    accounts.setStyle("fontSize",7);
    stocks.setStyle("fontSize",7);
    futures.setStyle("fontSize",7);
    ]]>
    </mx:Script>
    <mx:TabNavigator borderStyle="solid"
    click="clickHandler()" change="changeHandler()">
    <mx:VBox id="accounts" label="Accounts"
    width="300"
    height="150">
    <mx:Label text="Accounts"/>
    </mx:VBox>
    <mx:VBox id="stocks" label="Stocks"
    width="300"
    height="150">
    <mx:Label text="Stocks"/>
    </mx:VBox>
    <mx:VBox id="futures" label="Futures"
    width="300"
    height="150">
    <mx:Label text="Futures"/>
    </mx:VBox>
    </mx:TabNavigator>
    </mx:Application>

  • Who changed a report, when and how to see the addition to the code..

    Hi all,
    I want to see what an abaper has changed at my code.
    How to see this instead of inspecting it line by line.
    Thanks.
    deniz

    se38> display>utilities> version> version management--> select the version you want to compate --> compate

  • How to see what is downloading

    I have istat installed and right now showing something is downloading but i dont know what or how to stop it without turning airport off. So I was wondering if there was a way I could see what was downloading so I could stop whatever it is. Its actually downloading pretty good, almost 3mb/s at sometimes and its been doin it for a while. So its kind of concerning.
    thanks

    Can you figure out with whom your MacBook is communicating? Try launching /Applications/Utilities/Terminal.app from an admin-privileged account and type 
        tcpdump -i en1 host 192.168.1.101 
    where the gray entries are variable entries, "en1" is what I think is the interface address on MacBooks for Airport, which I assume you are using as your connection to the router, and the "192.168.1.101" should really be whatever is the 192.168.x.x address for your MacBook. (If you get a message that says "no IPv4 address assigned" then en1 is the incorrect interface; look at /Applications/Utilities/Network Utility.app's info panel to find your active internet interface).
    tcpdump will display packets and the IP address with whom your MacBook is communicating. It will also show MacBook port and distant end port numbers, which may help you identify what application or service is communicating, and to what application and service at the distant end.
    /Applications/Utilities/Network Utility.app's lookup and whois panels should help you figure out to whom that IP address belongs, which may shed some light on why this packet traffic is happening.

  • How to see what Tables are being used in all reports

    Post Author: tmashley
    CA Forum: Crystal Reports
    Hello,
    How can I see what database tables are used in all my online reports? I have around 1000 reports posted to Enterprise over 6 different datasources. If possible I would like to see the fields within those tables that are being used to.
    I am using Crystal Reports XI Release 2
    Any help is appreciated
    Thanks,
    Tom

    I don't think you can see the databases of the reports unless you download the report onto your pc as a Crystal Report format and then open it under Crystal Reports.
    This way it will open the report within Crystal Reports and will show you the datasource it is coming from.
    I doubt if you can see them online.
    Kind Regards
    Jehanzeb

  • Tools to see "what happens" in oracle 9.2.0.1

    HI !
    need a basic tool to se what the database is doing, we have IFS Applications system,and it loads the database severly,using 70 % of cpu time all the time,and they have no godd tyool to see what is happening, i can olny see through the enterprise manager console the active sessions, but not what they really doing.
    I hope someone understand my bad explanation.
    regards,
    Linkan

    We have a similar problem with another business software system. To gather some stats and to "chart down" the many programs that puts load on the database, we created a logoff trigger that captures v$ stats. This enables us to collect program names and LIO, cpu and other resource consumption: a great way to spot the biggest culprits (e.g. badly coded batch programs) and know what to circle in on next...

  • How to see what are the privilages a USER has

    Hi all,
    How to see the what are the privilages a USER has.
    and
    In Oracle 10g, where the log files were created ?
    Thanks in advance,
    Pal

    Hi,
    You can use the "DBA_SYS_PRIVS" data dictionary view to see a user's system privileges.
    You can use the "DBA_ROLE_PRIVS" data dictionary view to see a user's roles by filtering on the "GRANTEE" column.
    Finally, you can see what direct grants a user has on tables, views, packages, types, procedures, functions, etc. with "DBA_TAB_PRIVS"...
    Hope this helps...

Maybe you are looking for

  • 10.5.5 Self Assigned IP OR no connection at all

    Okay, I'll try to condense this as much as possible. I have an imac, MBP, cell phone, and a couple gaming systems which connect to my network via wifi. All has been well for ages with this setup. 10.5.5 comes along and I didn't install it for a bit.

  • Why can't I add anything from my library to my iPhone?

    I have some music on my computer in my iTunes library. When I try to add it to my iPhone I get an error message which says no songs in the iTunes library can be copied to my iPhone. The only thing I could think of was to make sure the computer is aut

  • Any ways to change the MAC address permanently?

    Are there?:)

  • Can I get an old receipt?

    I bought my iMac on 2008, It is in Venezuela right now and I want to bring it back to Canada. To do that, I have to present the receipt to the Venezuelan customs. How can I get that old receipt? Thank you. Alicia

  • Database 11gR2 on HP-blades: any experiences?

    Hi, we plan to migrate our databases to 11gR2 - and in addition, to migrate our current HP-servers to HP-blades. I'm curious if anybody has already made some experiences with this configuration (advantages and disadvantages). We will install some of