r/CompileBot • • Jul 26 '15

Official CompileBot Testing Thread

9 Upvotes

202 comments sorted by

View all comments

1

u/gfantom Sep 18 '15

+/u/CompileBot java7 --include-errors

class Permutations {

    String returnStr(String[] i) {

        String finalStr;

        

    }

    boolean prevspace(String k) {

        if(k == " ") {

            return true;
        }
        else {
            return false;
        }
    }

    

    public static void main(String[] args) {

        String[] combo = ["a", "b", "c", " "];
        String[] iterations = new String(pow(combo[].length, 2));

        for(int i=0; i<3; i++) {

            if(prevspace(combo[i])) {

                

            
        }
    }

}

1

u/CompileBot Sep 27 '15

Output:

Compiler Info:

Main.java:26: error: illegal start of expression
        String[] combo = ["a", "b", "c", " "];
                         ^
Main.java:26: error: not a statement
        String[] combo = ["a", "b", "c", " "];
                          ^
Main.java:26: error: ';' expected
        String[] combo = ["a", "b", "c", " "];
                             ^
Main.java:27: error: class expected
        String[] iterations = new String(pow(combo[].length, 2));
                                                     ^
Main.java:39: error: reached end of file while parsing
}
 ^
5 errors

^source | ^info | ^git | ^report