forum

Home / DeveloperSection / Forums / Finding error in the following if statement using java

Finding error in the following if statement using java

E E Cummings297105-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

Can you answer this question?


Answer

1 Answers

Liked By