English 中文(简体)
我只是不知怎么弄坏了Netbeans,我不知道该怎么修
原标题:I just somehow broke Netbeans, and I don t have any clue how to fix it

所以我的印象是,在编程中犯下的任何错误都可以通过撤销它来弥补……我刚刚发现事实并非如此!

我正在做一个大型学校的java编码项目,该项目将于明天到期,我想更改特定类中列表变量的列表类型。我点击了<>;括号,(我不知道为什么我没有找到并替换)我选择了值,然后点击重构。

我想把文本改成字符串。我不知道它做了什么,但它很糟糕。基本上,每次在我的程序中使用String(就像每个类一样)时,它都会用红色下划线,不起作用。我所有的课现在都涂上了红色。每个的错误消息相同:

method setString in interface java.sql.PreparedStatement(or whatever method I am using) cannot be applied to given types
  required: int,java.lang.String
  found: int,myPackage.String

有人对这件事有什么想法吗?不知怎么的,我使用的是包中的Strings,而不是java.lang包,但没有更改任何导入。这对我来说是一件愚蠢的事情,我只希望我能撤销它,重新开始这个项目。

谢谢

最佳回答

看起来您已经创建了名为String的自己的类,并且它正在隐藏核心Java String类。将String类重命名为其他类。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签