Help plz on SUM.

hi i have a little program with a function. function return type is int im geting return type like
int chk = myfunction(somevar);
int chk1 = myfunction(somevar);
int chk2 = myfunction(somevar);
int chk3 = myfunction(somevar);when i try to sum all these chk variables it me error operator + cannot be applied to <nulltype>,int
int sum = chk1 + chk2 + chk3 + chk;plz help me what is wrong in the code with thanx
zerocool
Message was edited by:
zerocoool

Yes,
It seems be true.
I think one of myfunction(somevar) returned null.Then the return type of that method can't be 'int' as
the OP claimed.
Jos there can be a case that he is having an int return type but returning an Integer value(provided that he is using a Java compiler greater than 1.5.0).
static int m1() {
          Integer i = null;
          return i;
kind regards,
Jos

Similar Messages

  • Im new to the 5g ipod help plz

    will the ipod turn off if i leave it on pause? i know i have a really stupid question but help plz thx

    Yes.

  • My Apple TV is not working. On tv display, I'm getting unsupported signal. Check your device output. Can anyone help plz.

    My Apple TV is not working. On tv display, I'm getting a message 'unsupported signal. Check your device output. ' Can anyone help plz.

    connect it to a tv which support full hd and go into the settings and lower the resolution as much as possible and then connect it with your tv once more

  • I have just getting a new phone and I have forgot my password an Apple ID what I made new for the new phone now I cannot get on it because asking for id and password what should I do help plz thank u

    I have just getting a new phone and I have forgot my password an Apple ID what I made new for the new phone now I cannot get on it because asking for id and password what should I do help plz thank u

    Try
    https://iforgot.apple.com

  • I lost my phone and i got an unlocked 4s from my gf she used it before an its still connected to her icloud is there a way i can restore my icloud back up to replace hers without messing up the unlock also my latest backup isnt showing on my pc help plz!!

    i lost my phone and i got an unlocked 4s from my gf she used it before an its still connected to her icloud is there a way i can restore my icloud back up to replace hers without messing up the unlock also my latest backup isnt showing on my pc help plz!!

    Please please help me, if you know how.

  • I cant get voice over to work on my 4G shuffle it clicks off every time help plz

    i need help plz it wont work

    Hello,
    Welcome to Adobe Forums.
    Try uninstalling Adobe Flash Player from Flash Player uninstaller : http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html#main_uninstall
    Try a clean installation using this KB : http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- mac.html
    Thanks,
    Vikram

  • Help Plz.......!!!!its urgent

    hi nokia users
    flash lite on my 5530 only plays youtube videos,and when tried to play videos on other sites then it says flash player is required............do ui use any software that supports web videos...???
    help plz.....
    thanks in advance

    Falshplayer vedio cant acces in your device?

  • Help plz so my gf said she block me and we txt back to back but later on i sent her a messages and it said it was read so am I blocked  a

    help plz so my gf said she block me and we txt back to back but later on i sent her a messages and it said it was read so am I blocked 

    The proper way to close Firefox is through the File menu "Exit" or the equivalent with the Firefox button.
    More detail in item '''#38 Firefox already running '''
    of
    [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6) (#fx4interface)]
    Firefox already running, to properly shutdown Firefox when closing the last window use File → Exit/Quit (or Firefox button → Exit). Closing Firefox with the [X] in the upper right corner closes the window ("Ctrl+W") but that does not necessarily close Firefox if it has subtasks running. If you want to close and reopen Firefox use the "Restart" within Add-ons if you made a change requiring a restart, or install "[https://addons.mozilla.org/firefox/addon/restartless-restart/ Restartless Restart]" ("Ctrl+Alt+R") which will allow you to take Firefox down and restart without having to check the Windows Task Manager to see if Firefox first actually ended. [http://kb.mozillazine.org/Firefox_hangs Firefox hangs]

  • Help plz, i need back up my phone

    Help plz, i have iphone 4 i still have icloud  on my itunes and i need to update it to the new one but i dont want to lose any of my pictues of my kids im not sure if ive backed it up before if i have it would of been a long time ago plz help me thanks

    jennyspeedy* wrote:
    i dont want to lose any of my pictues of my kids im not sure if ive backed it up before if i have it would of been a long time ago plz help me thanks
    Then use the device as designed.  Copy the pictures off the device to the computer.  For any pictures that you desire to keep on the device, simply sync them via iTunes.
    Failure to copy the pictures off the device is only asking for problems.  If the device is ever lost/stolen or simply fails to work, without a backup they would be gone as well.

  • Help Plz i've blank LCD in Lenovo G530

    Help Plz i've blank LCD in Lenovo G530
    the unit is working and the power & wireless indicators is  on but the LCD is blank
    i've allready unpluged the battery and powered the unit with the charger only and plug the battery again but still have the same problem.
    so plz advice what to do ?????

    Try to plug in external monitor and look if anything shows. Then try to check monitor configuration. Maybe it is switched off...
    Regards,
    Publius
    Lenovo 3000 V200

  • I forgot my password, and i want to unlock it without losing my data, can anyone help plz???

    i forgot my password, and i want to unlock it without losing my data, can anyone help plz???

    You can't. It is a good security feature. You have to connect the iPod to yur computer and restore via iTunes.

  • Itunes help plz respond asap

    ok so when i try to play my songs on itunes no matter where it was downloaded from (itunes or another source) it wont play. it will act like it was going to play and then freeze at 00:00. i tried re-installing it and deleting my itunes library and putting it back on but nothing has worked. my sound is fine because it makes that noise when i turn on the computer and such. help plz.

    You can get iTunes here: http://www.apple.com/itunes/
    You will also need the iPod Updater:http://www.apple.com/ipod/download/

  • How can we create a Collective search help  plz tell me with steps

    How can we create a Collective search help  plz tell me with steps
    thanks,
    basu

    Hi
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    Reward points for useful Answers
    Regards
    Anji

  • LASERJET M1217 nfw MFP urgent help plz

    HAY GUYS, NEED URGENT HELP!!!!!!!!!
    My printer M1217 nfw MFP had a problem with the scanner and it was fixed bu updating the firmware and the scanner works fine and offcourse i printed the config. report  befor updating the firmware , the problem is that i lost the report and i cant config. the fax or the wirless connection . any help plz guys  

    kelsaeed wrote:
    HAY GUYS, NEED URGENT HELP!!!!!!!!!
    My printer M1217 nfw MFP had a problem with the scanner and it was fixed bu updating the firmware and the scanner works fine and offcourse i printed the config. report  befor updating the firmware , the problem is that i lost the report and i cant config. the fax or the wirless connection . any help plz guys  

  • I was using my ipod 4th gen and it just stopped working..help plz?

    i was using my ipod 4th gen and it just stopped working..help plz?

    Try restoring...
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software
    If you can't restore the iPod...
    Apple - Support - iPod - Service FAQ

Maybe you are looking for