Divide the Tangerine - Java 6 is used

Hello Java coders,

please note, that problem Divide the Tangerine is compiled using Java 6 (even when you choose Java 7 from drop down). We had there similar problems before, search the forum to find the details why. Your code will be fine, when you won’t use Java 7 features…

I wrote this to comments, but ignored by admins, I believe, this is not against the rules.


I think this is true for every problem on Codechef…

I didn’t get the problem…can you please explain it ?

1 Like

@penhaunt: there are several handy things introduced in previous Java release (7), few examples I like to use

    // binary numbers, number separators, used in combination
    System.out.printf("%d %d %d\n", 0b01, 1_000_000_007, 0b0100_0100);
    // new API
    System.out.printf("%s\n", Integer.compare(12, 34));
    // diamond operator <>
    final List<Integer> list = new ArrayList<>();

@junior94: no it’s not the same, it is related to the environment as described here