作者:夏天电艹热毯 | 来源:互联网 | 2023-09-23 18:10
SoIhavebeenprogrammingforallof4hours,Iamusingathistutorialhttp:www.vogella.comart
So I have been programming for all of 4 hours, I am using a this tutorial http://www.vogella.com/articles/Eclipse/article.html#eclipseoverview. when after copying the code I got an error cannot be resolved to a type. I then did what all my friends told me to do, look at the code. I spent an hour making sure mine looked like his.
所以我已经编程了4个小时,我使用的是这个教程http://www.vogella.com/articles/Eclipse/article.html#eclipseoverview。在后,我得到的错误不能被解析为类型。然后我做了我所有的朋友让我做的事情,看看代码。我花了一个小时来确定我的看起来像他的。
the program is supposed to print hello world on to the screen. here is my attempt at it:
该程序应该在屏幕上打印hello world。下面是我的尝试:
package de.vogella.eclipse.ide.first;
public class myFirstClass {
public static void main(string[] args) {
System.out.println("hello eclipse");
}
}
In eclipse the word string is highlighted and it says that it cant be resolved to a type. I have also tried another java tutorial, Java total beginners, and this same problem appears. Any help would be appreciated, I'm totally new to programming, I try to learn more by using tutorials but this keeps stopping me (i know catch 22. Any advice that could help me get past this would be great, advice or maybe a question that already covered this any help would be great!!
在eclipse中,单词字符串被突出显示,并表示不能将其解析为类型。我还尝试了另一个java教程,java完全初学者,这个问题也出现了。任何帮助都是值得感激的,我对编程完全陌生,我尝试通过使用教程来学习更多,但这一直阻止我(我知道catch 22。任何能帮我度过这段时间的建议都是很好的建议,或者是一个已经涵盖了这一切的问题,将会是非常棒的!!
4 个解决方案