missing_return_statement.invalid.mj 291 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
class MissingReturnStatement {
    public static void main(String[] args) {
        MissingReturnStatement obj = new MissingReturnStatement();
        boolean x = obj.test(5, 0);
    }

    public boolean test(int a, int b) {
        if (a < b) {
            return false;
        }
    }
}