mercredi 6 mai 2015

Syntax error, delete token "else"

public class Basic {

    public static void main (String []args){
        int first = 1;
            if (first == 1);{ 
                System.out.println("I did it");
            } 
            else {
                System.out.println("I didnt do it");
            }

I dont know what to do, is there a mistake and i followed all the steps in the tutorials i'm watching. It just says delete the token

Aucun commentaire:

Enregistrer un commentaire