In a part of my java program I have this method:
public boolean read( RAFFileReader rdr, String endOfData )
{
boolean isThere;
String inputLine = rdr.readLine();
if (inputLine.equalsIgnoreCase(endOfData));
isThere = false;
else
{
courseNum = rdr.readLine();
courseName = rdr.readLine();
courseDescription = rdr.readLine();
isThere = true;
}
return isThere;
}
But the compiler complains and gives the "else without if" message...I think I did my if/else statement correctly, but if not, what else is wrong?