CheddarCheese.setNewQtyInStock(CheddarCheese.getMaxNum());
i thought this piece was setting a value for CheddarCheese.newQtyInStock?
Type: Posts; User: JJTierney
CheddarCheese.setNewQtyInStock(CheddarCheese.getMaxNum());
i thought this piece was setting a value for CheddarCheese.newQtyInStock?
Ok here's my problem....again. This is the only way i know how to do this so don't be disgusted at my coding.
public class ReOrderList
{
public static void printDetails(Food CheddarCheese,...
public class ReOrderList
{
public static void reOrder(Food qtyInStock, Food reOrderPoint)
{
if(qtyInStock < reOrderPoint)
{
}
}
Thanks mate, i can finally finish this thing :)
Hey mate, i am a first year programmer. But i think i can help you a bit.
this is your code
public class Scope
{
public static void test(int num)
{
if(num > 10)
{
I have done that and it works, however this is how my test class looks.
public class TestStore
{
public static void main(String[] args)
{
CheddarCheese cc = new CheddarCheese(324,...
So how do i fix it so that the variables are not static and that
public class StockList
{
public static void printDetails()
{
System.out.println("Stock List");...
Hello, i am trying to create a program that prints out a stock list.
These are my classes.
package ca1;
public abstract class Store
{
private static int partCode;