简体   繁体   English

升级时的Intellij问题

[英]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.

相关问题 升级故障安全时集成测试失败,但在 intellij 内通过 - Integration test fails when upgrading failsafe but passes within intellij 从 Intellij 2020.1.2 升级到 IntelliJ 2021.2.3 与 Java Play 2.2 一起使用时出现问题 - Upgrading from Intellij 2020.1.2 to IntelliJ 2021.2.3 Issue when use with Java Play 2.2 在 AWS 上从 MySQL 5.5 升级到 5.6 时 Hibernate 和日期的问题 - Problems with Hibernate and dates when upgrading from MySQL 5.5 to 5.6 on AWS Checkstyle-IDEA IntelliJ 插件在它应该出现的时候没有显示问题 - Checkstyle-IDEA IntelliJ plugin not showing problems when it should 使用IntelliJ导入库项目时出现Android问题 - Android problems when import library project using IntelliJ 在IntelliJ中打开AOSP-问题 - Open AOSP in IntelliJ - problems IntelliJ调试问题 - Problems with IntelliJ debug 升级JSyn相关程序的问题 - Problems in upgrading JSyn related programs 升级IntelliJ之后,Play Framework中控制器的InstantiationException - InstantiationException for controllers in Play Framework after upgrading IntelliJ 升级到 IntelliJ 14 后的 Java 和 Scala ClassNotFoundException - Java and Scala ClassNotFoundException after upgrading to IntelliJ 14
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM