Question: VE Paragraph Styles GECE:120D CD145 Java 1. Write a statement that declares a String variable named city. The variable should be initialized with the string
VE Paragraph Styles GECE:120D CD145 Java 1. Write a statement that declares a String variable named city. The variable should be initialized with the string literal "Los Angeles". Note: we now that string literals are enclosed in double quotation marks, but there is a limitation in Softchalk and we cannot use double quotation mark in your answers. Therefore, just for this exercise. plase use a sigle quotation instead of("). 2. Given the following declaration: String modification: Write a statement that replaces all the characters 'e' by # in the string object 'city and stores the modified string in the modification2. I 3. Given the following delcaration: String modification: Write a statement that stores the lowercase equivalent of the string object 'eity' in modification Focus
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
