lundi 7 novembre 2016

Please help...? I am just a novice and starting off with java.... I am getting an error while compiling... What am I doing wrong? [on hold]

Please help...? I am just a novice and starting off with java.... I am getting an error while compiling... What am I doing wrong??

class For {
    public static void main (String[]args){
    if (args.length == 0) {
        System.out.println ("Please enter a number between 1-99");
    } else  if {
        for (int x = Integer.parseInt(args[0]);x < 100; x++) {
            System.out.println (x);
        }
    } else (x >= 100) {
        System.out.println("Error Invalid Number.");
    }
    }
}

Aucun commentaire:

Enregistrer un commentaire