public static void main(String[] args) throws FileNotFoundException
{
//Array array = new Array();
System.out.println("Please Enter the Item you Would Like to Purchase");
//Item[]items = new Item[4];
Item itm = new Item("d", 2.2, 3);
if(itm.ItemFound())
{
System.out.println("You are lucky, we found your Item.");
}
else
{
System.out.println("Did not find your item");
}
}
}
For now my code only finds whether the item is available or not. But what i want to do is to print out the name of the item found along with its quantity and cost.
Please help me with this. I have been struggling with it for a long time
Bookmarks