method isAvailable
807598May 15 2006 — edited May 15 2006Hi, i keep getting this error message ';' expected, at the method public boolean isAvailable. I have pasted the java code for my java class below. Can anyone please help?
public class Camera
{
private int id;
// added new attribute called description
private String description;
private int borrower;
// declare other attributes here
public Camera(int newId, String description, int newBorrower)
{
id = newId;
description = description;
borrower = 0;
// edit to set initial values of other attributes; may need further parameters
}
public int getId()
{
return id;
}
public String description()
{
return description;
}
public int getBorrower()
{
return borrower;
}
public boolean isAvailable()
}
if(borrower==0){
return true;
}
public void setDescription()
{
description = description;
}