how can i compare part of a string with another string regardless the rest of the string?
for example: if i want to find whether a string has an underscore or not
i want this if condition to return true
how can i do that ?
for example: if i want to find whether a string has an underscore or not
Code:
if(x[i].equals("anything_anything"))
how can i do that ?
Comment