编辑代码

class Main {
	public static void main(String[] args) {
		System.out.println("Hello world!   - java.jsrun.net ");
	}
}
interface animal
{
    public static int a = 5;
    public void eat();
    public void travel();
}
class mammalint implements animal
{
    private int x;
    public void setx(int x)
    {
        this.x = x;
    }
    public int getx()
    {
        return x;
    }
    public void eat()
    {
        System.out.println("mammal eats. ");
    }
    public void travel()
    {
        System.out.println("mammal travels. ");
    }
    public void nooflegs()
    {
        return 0;
    }
}