Which of these methods of class String is used to check whether a given object starts with a particular string literal?

Which of these methods of class String is used to check whether a given object starts with a particular string literal?
A. startsWith()
B. endsWith()
C. Starts()
D. ends()
 

Tìm kiếm

Back
Top