Question: Using string class methods ( length ) Given the following declaration: String s = 7 birds and 1 2 cats; Evaluate the expression: s
Using string class methods length
Given the following declaration: String s birds and cats";
Evaluate the expression: slength
Given two String variables, s and s to determine if they are the same length, which of the following conditions would you use?
asequalss
bslength equalss
cslengthequalsslength
dslength s length
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
