编辑代码

class Main {
	public static void main(String[] args) {
        //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
		System.out.println("Hello world!   - java.jsrun.net ");
        Puppy myPuppy = new Puppy ("tommy");
	}
    
}

public class Dog{
    String breed;
    int size;
    String color;
    int age;
    void eat(){
    }
    void run(){
    }
    void sleep(){
    }
     void name(){
    }
}

public class Puppy{
    public Puppy(){
    }
    public Puppy(String name){}
}