class MOrders
{
int nooforders; // Data members of the class
public int getorder()
{
nooforders = 500;
}
public void displayorders()
{
System.out.println("The number of orders to be delivered: "+ nooforders);
}
public static void main(String args[])
{
MOrders obj = new MOrders ();
obj.getorder();
obj.displayorders();
}
getting a statement saying missing return statement on line 6,while trying to compile the code.so can someone please help me!