Question: Strings: Statement: Declare a String named dog Statement: Assign the empty String to dog Statement: Assign one blank space to dog (Is the empty string

Strings:

Statement: Declare a String named dog

Statement: Assign the empty String to dog

Statement: Assign one blank space to dog (Is the empty string equal to a String with a blank?)

Statement: Assign a name of a dog to the variable dog

Statement: Declare and assign the name of a cat to cat in one statement

Statement: Concatenate cat and dog in an output statement.

Statement: Assign a value of the concatenation of dog and cat to the variable dogAndCat.

Expression: How would you determine the length of a String called temp?

What is an index of a String?

How does the index of the last character of a String compare to the String's length?

How would you print out the first character of a string using charAt?

How would you print out the first character of a string using substring?

How would you print out all but the first character of a string? What would you use?

How would you print out the second character of a string?

How would you count the number of times 't' ocurs in "The hat stays on the head"

Escape characters:

Be able to use the escape characters in an output statement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!