FurnitureStock.java

package mypgms;

public class FurnitureStock {
	int count;
	static int stock = 10;
	FurnitureStock()
	{
		
	}
	FurnitureStock(int quantity)
	{   
		if (stock > 0)
		{
		stock = stock - quantity;
		}
	}
	
    public int GetStock()
    {
    	return stock;
    }
    public void StockAvailable()
    {   FurnitureStock fs = new FurnitureStock();
    	System.out.println(fs.GetStock());
    }
}