0

//我是 java 新手并使用 VS 代码。我一直面临这个问题,我不知道如何解决它。它一直向我显示错误:无效标志:.\App.class 代码昨天工作正常,现在突然显示此错误。我尝试清理 Java 语言服务器工作区,但没有解决问题。我需要一些帮助。

public class App {
    public static void main(String[] args) {

    }
}

interface Camera {
    void takeSnap();

    void recordVideo();

    default void arka() {
        System.out.println("Default method can be deffined in interface ");
    }
}

interface WiFi {
    String[] getNetwork();

    void connectToNetwork();
}

class MySellphone {
    // public int a = 10;

    void callNo(int no) {
        System.out.println("Calling " + no);
    }

    void pickCall(int no) {
        System.out.println("Connecting " + no);
    }
}

class SmartPhone extends MySellphone implements Camera, WiFi {
    // MySellphone obj = new MySellphone();
    // obj.a=8;

    @Override
    public void takeSnap() {
        System.out.println("Taking snap ");
    }

    @Override
    public void recordVideo() {
        System.out.println("Recording");
    }

    @Override
    public String[] getNetwork() {
        String[] something = { "aa", "ss", "dd" };
        return (something);
    }

    @Override
    public void connectToNetwork() {
        System.out.println("Connected");
    }

}
4

0 回答 0