[英]Intellij Problems When Upgrading
Hey guys i have been writing a simple DealOrNoDeal game in java using intellij community edition. 大家好,我已经使用intellij社区版用Java编写了一个简单的DealOrNoDeal游戏。 However on understanding that the community edition lacks the support for Databases in relation to the ultimate edition of intellij.
但是,由于了解到社区版本相对于intellij的最终版本缺乏对数据库的支持。 So i installed the ultimate edition, have imported my project and started implementing my db.
所以我安装了最终版,已经导入了我的项目并开始实现我的数据库。 However now i am i getting a lot of errors in my code that i didn't have in the community edition.
但是现在我在代码中遇到了很多错误,而社区版中没有这些错误。 Most of which are relating to my Integer objects and also my Scanner object.
其中大多数与我的Integer对象以及Scanner对象有关。
Take this line for example: 以这行为例:
private static Integer[] prizes = {0, 1, 2, 5, 10, 20, 50, 100, 150, 200, 500, 750, 1000, 2000, 3000, 4000, 5000, 10000, 15000, 20000, 30000, 50000, 75000, 100000, 200000, 500000};
Intellij is saying i cant initialize my Integer objects with primitive ints. Intellij说我无法使用原始int初始化我的Integer对象。 However i believe you are.
但是我相信你是。 I am and was using the same jdk for both ides.
我现在和以前在两个ide上使用相同的jdk。 (1.8)
(1.8)
private static Scanner scan = new Scanner(System.in)
this line also gives me errors about "Usage of API documented since 1.4" 此行也给我有关“自1.4起记录的API使用情况”的错误
can someone help me please understand these new issues i am facing in intellij ultimate edition. 有人可以帮我吗,请理解intellij Ultimate Edition中面临的这些新问题。
Also all of my generics are spitting an error saying "Generics are not supported at this language level." 同样,我所有的泛型都吐出一个错误,提示“此语言级别不支持泛型”。
github link: https://github.com/brnabus/DealOrNoDealGame github链接: https : //github.com/brnabus/DealOrNoDealGame
File>Project Structure> Project Settings> Project > Project Language Level was on Default Java 1.3 changed to 5 文件>项目结构>项目设置>项目>项目语言级别为默认Java 1.3更改为5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.