Suppose that stringa is in stringb at position pos. Which one of the following returns the part of stringb that comes after string

By Mia

Suppose that stringa is in stringb at position pos. Which one of the following returns the part of stringb that comes after stringa in the method lastPart?

A)return stringb.substring(pos+stringa.length());

B)return stringb.substring(pos);

C)return stringb.substring(pos, stringa.length());

D)return stringb – stringa;

About the author
Mia

1 thought on “Suppose that stringa is in stringb at position pos. Which one of the following returns the part of stringb that comes after string”

Leave a Comment