(编辑)我不确定发生了什么。我相信一切都是对的,但我不确定。我正在尝试创建一个对象,但是当我编译它时,读取'符号无法找到'
public class State{
public static void main(String[]args){
something hh = new something();
hh.you();
}
}
和
public class something{
void you(){
System.out.println("asdfasdfa");
}
}
这些是弹出的错误
State.java:6: error: cannot find symbol
something hh = new something();
^
symbol: class something
location: class State
State.java:6: error: cannot find symbol
something hh = new something();
^
symbol: class something
location: class State
2 errors