Subject: Ditch excess weight like Oprah

From: Drop 22 Pounds By Summer <[email-masked]>
Date: Mon, 14 Jul 2014 07:13:46 -0700

Re: For you on Moday 24ee9404f4a0754725e6a347512307f8. Thanks for this. Jill

You probably think that it's too late to shed your winter-LB's you gained before you bust out your bikini, tank tops, and hit the beach. THAT'S ABSOLUTELY NOT TRUE.

No need to fear, you can rid 1LB-a-day with "The Doctors" method that worked for Oprah and everyone else who has tried.

Oprah's Top Tip Of 2014 (now Posted)

It Involves----

--NO going to a grimy gym

--NO Starvation or food restrictions

multiple aguments aren't great, that's why I suggested the accessor methods. I also agree that ideally the EnumSet is the nicest option but I had read that the OP was "green" and thought something simple as a stepping stone away from the obviously painful String passing was a better option. I would normally have expanded my answer to be more advanced but @gexicide answered in the meantime and I don't want to answer steal and both are now here for anyone who wants it. Down voting because its not the absolute optimal answer isn't really right though eh?

We hope you learned a thing or 2!

Recap: http://www.morhammer.com/drs--feat--Oprah_773523454.html

Thanks-

"The Doctors"

Past Shows:

aclyn Smiths Skin Secrets; Bride-to-Be Battles Brain Aneurysm

Body Fluids Exposed

ee more..

OK, first of all, you setExits() method will not work as intended, chained if-elseif will maximally execute 1 branch of code, for example:

if (e.contains("N"))

bexits[0] = true;

else if (e.contains("W"))

bexits[1] = true;

Even if e contains both N and W, only bexits[0] will be set. Also this method will only add exits (for example calling setExits("") will not delete any existing exits.

I would change that method to:

bexits[0] = e.contains("N");

bexits[1] = e.contains("W");

...

Also, i definetly wouldn't remember that north is on index 0, west in on 1, ... so a common practice is to name your indexes using final static constants:

public static final int NORTH = 0;

public static final int WEST = 1;

...

Then you can write in your setExits method:

bexits[NORTH] = e.contains("N");

bexits[WEST] = e.contains("W");