Search:

Type: Posts; User: spongyballs

Search: Search took 0.10 seconds.

  1. Replies
    2
    Views
    1,084

    final calculation after if statment

    good evening peoples

    Once again I am on top of my head if anyone could point me in the right direction I would be very grateful.

    As you can see from snippet of code below I can chooce 1 of the...
  2. Replies
    2
    Views
    1,284

    Re: simple addition inside { of after the if

    this is what im getting
    System.out.println(+appleCost + carrotCost+
    simple addition
    5 errors found:
    File: C:\Users\
    Error: variable appleCost might not have been initialized
    File: C:\Users\...
  3. Replies
    2
    Views
    1,284

    simple addition inside { of after the if

    good evening peoples

    Once again I am on top of my head if anyone could point me in the right direction I would be very grateful.

    As you can see from snippet of code below I can chooce 1 of the...
  4. Replies
    4
    Views
    1,182

    Re: Struggling with if and if else

    Think i have my head around it. I worked it around a simple if age is >21 made it so apples > 1 oranges > 2 straberrys> 3 using if and if else, else. Done it x3 times. 4 items in the last choice. So...
  5. Replies
    4
    Views
    1,182

    Re: Struggling with if and if else

    Understand just not sinking in. 2 more days will be bauld and probly need new laptop 2 days is long time so might end up expert within that time cheers for reply
  6. Replies
    4
    Views
    1,182

    Struggling with if and if else

    Hello just arrived today so hello everyone
    I'm trying to get my head around if statments
    I have 6 items that i can buy (in my little shop) But I am only allowed to buy 3 of the 6
    I have the code...
Results 1 to 6 of 6