Which of these methods of class String is used to check whether a substring exists at the beginning of the particular string?

Vy Bùi

New member
Which of these methods of class String is used to check whether a substring exists at the beginning of the particular string?
A. StartsWith()
B. EndsWith()
C. Starts()
D. ends()
 

Tìm kiếm

Back
Top