Package Server

Source Code of Server.Server

package Server;
import Master.*;
import Eatables.*;

interface OrderServer
{
  public String giveMenu();
  public Object orderItem(String[] Food) throws Exception;
}
public class Server implements OrderServer
{
  public String giveMenu()
  {
    String menu="S.no.\t\t Food\t\t Rate(Rs.)\n_____________________________________________________\n1)\t\t Idly\t\t 6.00\n2)\t\t Dosa\t\t 20.00\n3)\t\t Ghee\t\t 30.00\n";
    return menu;
  }

  public Foods[] orderItem(String[] Food) throws Exception
  {
    Master m=new Master();
    Foods[] f=m.readyFood(Food);
    return f;
 
  }

}
TOP

Related Classes of Server.Server

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.