DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   set time in int (http://www.daniweb.com/forums/thread57595.html)

THK Oct 10th, 2006 2:43 am
set time in int
 
i have to set the time in minutes when this plane is expected to land or take-off. and i have to use method int..:eek:

public int setScheduledTime() {

}


what should i do.... :sad:

DavidRyan Oct 10th, 2006 4:07 am
Re: set time in int
 
Take the answers from your other threads, and substitute "int setScheduledTime" for whatever the type and method name in those threads are.

cms271828 Oct 10th, 2006 10:55 am
Re: set time in int
 
You need to think carefully when you write your method.
It's a set method, so whats the return type (look at your other set methods)
You want to set a new time, so you will need to pass the new time in as an argument.
Its exactly the same as any other set method.

iamthwee Oct 11th, 2006 4:36 pm
Re: set time in int
 
Quote:

Originally Posted by THK (Post 261896)
i have to set the time in minutes when this plane is expected to land or take-off. and i have to use method int..:eek:

public int setScheduledTime() {

}


what should i do.... :sad:

You won't get any free help without trying it for yourself. Please try and have a go before you post. Thanq.


All times are GMT -4. The time now is 1:18 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC