Solved

Suppose S1 Is a String Variable

Question 20

Short Answer

Suppose s1 is a String variable.We want to check to see if the first and last characters of s1 are the same.Complete the following if-statement to accomplish the task.
boolean same;
if (______________________________________________)
same = true;
else
same = false;

Correct Answer:

verifed

Verified

s1.charAt(...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions