Search:

Type: Posts; User: JJTierney

Search: Search took 0.21 seconds.

  1. Replies
    2
    Views
    604

    Re: Method returning 0 for everything

    CheddarCheese.setNewQtyInStock(CheddarCheese.getMaxNum());

    i thought this piece was setting a value for CheddarCheese.newQtyInStock?
  2. Replies
    2
    Views
    604

    Method returning 0 for everything

    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,...
  3. Replies
    1
    Views
    552

    Error with code

    public class ReOrderList
    {

    public static void reOrder(Food qtyInStock, Food reOrderPoint)
    {
    if(qtyInStock < reOrderPoint)
    {

    }
    }
  4. Replies
    6
    Views
    486

    Re: Dont know whats happening

    Thanks mate, i can finally finish this thing :)
  5. Replies
    4
    Views
    1,821

    Re: Actual and formal parameters

    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)
    {
  6. Replies
    6
    Views
    486

    Re: Dont know whats happening

    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,...
  7. Replies
    6
    Views
    486

    Re: Dont know whats happening

    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");...
  8. Replies
    6
    Views
    486

    Dont know whats happening

    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;
Results 1 to 8 of 8