Users Pricing

forum

Home Forums Finding error in the following if statement using java – MindStick

Finding error in the following if statement using java

E E Cummings 3439 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";



1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md