无法创建对象&出现错误

时间:2017-03-09 23:31:44

标签: java object

(编辑)我不确定发生了什么。我相信一切都是对的,但我不确定。我正在尝试创建一个对象,但是当我编译它时,读取'符号无法找到'

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

0 个答案:

没有答案