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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started