Hi i am fairly new to java and need some help with a couple of problems.
I have an array and i want to do a boolean check to see if that array is full, i have used a method name arrayIsFull() so i can call this method inside another method which will add an object to the array. this will explain it better i have an array (with a maximum called max which is set by the user) called array
public void add(person p)
{
call isfull to see if array is full
if not full add person p to array
}
public boolean isFull()
{
check if array is full
}
I hope that makes sense!! Can any body help me?