Hey guys, i am currently studying a uni course, i need this method to take no parameters and returns true if the "room" is available and false if not. Room is available if its guest is an empty string.
Been trying to work it for days and no clue, any advise? I need to work it out on my own but some knowledge from an person on the outside could be a great help!
public boolean isAvailable(String guest) {
if (guest) {
return (true);
}
else {
return(false);
}
Been trying to work it for days and no clue, any advise? I need to work it out on my own but some knowledge from an person on the outside could be a great help!
public boolean isAvailable(String guest) {
if (guest) {
return (true);
}
else {
return(false);
}