java define interface

/* File name : Animal.java */
interface Animal {
   public void eat();
   public void travel();
}