mercredi 8 novembre 2017

I am having problems with my if statements

I am thoroughly struggling in my AP computer science class and have almost no idea whats going on. Ive been practicing on codingbat.com, but i still need some help with a couple errors. "Syntax error on token "boolean", @ expected", and "Syntax error on tokens, ClassHeader expected instead".

public boolean sleepIn(boolean weekday, boolean vacation)
{
  public static void main (String [] args)
  {
    boolean weekday=true; 
    boolean vacation=true;

      if(weekday==true && vacation==false)
      {
        return false;
      }
  }
}

Aucun commentaire:

Enregistrer un commentaire