Is it possible for me to hold all my private datatype within my abstract class so i can later use the stored information to be held within my array List (array list is in a different class). I have managed to store all Strings previously bur had no success with my Boolean value. I know that array lists are used to reference objects. Thanks
public abstract class Room
{
private String roomID;
private boolean ensuite;
private String guest;
private String nights;
private String booked;
public abstract room (String roomID boolean ensuite)
}
Has this been copied exactly from your code? there is a
,missing betweenString roomIdandboolean ensuite. Also abstract is not needed in the method declaration.Try this: