Important java function.

Jul 23, 2020 2:46 AM

java

coding

That’s that bullshit. Coaches coach and athlete play. But water boys lay pipes. Keeps cheerleader hydrated.

6 years ago | Likes 1 Dislikes 1

You don’t need the else. If(empty)refill;drink;

6 years ago | Likes 2 Dislikes 1

My new phone wallpaper

6 years ago | Likes 2 Dislikes 0

That's what I was going for. You're welcome.

6 years ago | Likes 2 Dislikes 0

You know that code's going to break What if you're out of coffee?

6 years ago | Likes 2 Dislikes 0

We're going to assume the coffee pot is on an endless brewing loop

6 years ago | Likes 3 Dislikes 0

Now wait a sec. Did you refine this assumption with the business?

6 years ago | Likes 2 Dislikes 0

Are you assuming I get paid for this?

6 years ago | Likes 2 Dislikes 0

It's an endless loop. You never set tired to false

6 years ago | Likes 9 Dislikes 0

That sounds about right

6 years ago | Likes 3 Dislikes 0

Ahhh I forgot the exit condition!

6 years ago | Likes 1 Dislikes 0

/ I'm always tired.

6 years ago | Likes 1 Dislikes 0

You're alright, tired is a higher scope boolean and coffee.drink() updates it, you didn't realize you wrote it that way while very tired.

6 years ago | Likes 1 Dislikes 0