Thanks, I don't fully understand what you meant by your last post.
I have another question, I want to use a boolean, here is my function:
public boolean isOpen(boolean i)
{
if(i == false)
{
return false; /*Not Open*/
}
else
{
return true; /*Is Open*/
}
}
My question is, on the declaration line, do I need to declare a bool between the brackets ?
public boolean isOpen(boolean i)
-OR-
public boolean isOpen()
Which one is correct ? Or the better practise ?