Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Java - compilation problem

$
0
0

Hello coders (especially Java coders),

it seems that even when we have Java 7 available for submissions, code is compiled with Java 6.

I found it when submitted code using diamond operator.

List<Integer> list = new ArrayList<>();

changing the above code to Java 6 version fixed the compilation problem

List<Integer> list = new ArrayList<Integer>();

...just letting you know ;-)


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>