Program 09: Nested If Statement public class Student { public static void main(String[] args) { String address = "Delhi, India"; if(address.endsWith("India")) { if(address.contains("Meerut")) {...

Give output of the program. If any error in code structure then correct it.Program 09: Nested If Statement<br>public class Student {<br>public static void main(String[] args) {<br>String address =

Extracted text: Program 09: Nested If Statement public class Student { public static void main(String[] args) { String address = "Delhi, India"; if(address.endsWith("India")) { if(address.contains("Meerut")) { System.out.printin("Your city is meerut"); }else if(address.contains("Noida")) { System.out.printin("Your city is noida"); }else { System.out.println(address.split(",")[0]); }else { System.out.printin("You are not living in india"); } } }

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here