3

Coffee coffee = new Coffee();
if (coffee.Empty)
{
coffee.Refill();
}
else
{
coffee.Drink();
}

Comments
  • 0
    What if there's an overflow?
  • 0
    @theuser then you still drink the coffee I guess๐Ÿ’

    You forgot the while true loop :) never stop drinkin' coffeeeee ๐Ÿ™ƒ
  • 0
    @theuser @theuser @b3b3
    if (coffee.HEARTATTACK)
    {
    break;
    }
  • 0
    @rtheone // PR

    while ( true )
    {
    if ( coffee.is_empty( )
    coffee.refill( );

    coffee.drink( );
    }
  • 0
    Feature request: I do not like cold coffee... I do not want to drink it!
Add Comment