mercredi 3 octobre 2018

Java else query returning a syntax error on the else statement

package question2;

public class question2 {

public static void main(String[] args) {

    int ANumber = 123;
    int AnotherNumber = 234;
    int AFinalNumber = 345;


    if (ANumber <= AnotherNumber);{
        System.out.println(ANumber + " " + AnotherNumber);
}

        else {
            int ANewNumber = ANumber;
            System.out.println(ANumber + " " + AnotherNumber);
    }
}

Aucun commentaire:

Enregistrer un commentaire