I wonder if I can turn the following chart into switch-case statement in android. I know I can do it with if-else but I just wonder if I can…
E.g-
switch (bodyfat)
case 2-4 : show (Essential Fat);
case 6-13 : show (Athelete Fat);
…….

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it with switch case in the following way: