so far I have:
public boolean isEmpty()
{
if (top = 0)
return empty = true;
}
public boolean isFull()
{
if (stackArray.length == 100)
return full = true;
}
When I try to compile, it says it expects a return or a boolean. I'm not really sure how to fix it. I understand the idea of what I'm trying to do, just not quite sure how it translates.

New Topic/Question
Reply



MultiQuote




|