forum

home / developersection / forums / finding error in the following if statement using java

Finding error in the following if statement using java

E E Cummings 3286 05-Oct-2013

Find the error in the following if statement that is intended to select a language for a given country and state/province. (5 points)


language = "English";

if (country.equals("Canada"))
    if (stateOrProvince.equals("Quebec"))
         language = "French";
    else if (country.equals ("China"))
language = "Chinese";



Updated on 05-Oct-2013
E E Cummings

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By