On Sun, Jul 8, 2012 at 10:04 AM, Rag <will_maund...@mac.com> wrote:

> I want the user to be able to enter the dimension in either "ft" of "m".
> The answer is required to be given in meters at the end.


Then convert each value to meters if they were input in feet to begin with,
then calculate. No need to check every single possible combination.

Also, doing "==" for a String in Java is incorrect. You need to use the
.equals() method.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to