Coffee.java (410B)
1 package coffee; 2 3 public interface Coffee { 4 5 /** 6 * Get the energy of coffee 7 * 8 * @return returns energy as integer. 9 */ 10 public int getEnergy(); 11 12 /** 13 * Return the type of coffee. 14 * 15 * @return type The type of coffee. 16 */ 17 public String getType(); 18 19 /** 20 * Set the energy of cofee object. 21 * 22 * @param int energy sets the energy of coffee object. 23 */ 24 public void setEnergy(int energy); 25 }