# Search:

Type: Posts; User: spongyballs

1. ## Thread: final calculation after if statment

by spongyballs
Replies
2
Views
305

### 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...

by spongyballs
Replies
2
Views
502

### Re: simple addition inside { of after the if

this is what im getting
System.out.println(+appleCost + carrotCost+
5 errors found:
File: C:\Users\
Error: variable appleCost might not have been initialized
File: C:\Users\...

by spongyballs
Replies
2
Views
502

### 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. ## Thread: Struggling with if and if else

by spongyballs
Replies
4
Views
419

### 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. ## Thread: Struggling with if and if else

by spongyballs
Replies
4
Views
419

### 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. ## Thread: Struggling with if and if else

by spongyballs
Replies
4
Views
419

### 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