I need to make a method that checks if a given String only consists of lower- and uppercase letters, numbers, dots (.), hyphens (-) and underscores ( ).
public boolean isValidString(String name) {
}
I just don’t know how to get it started 🙁
Tx in advance
Use regular expressions: