extract the string starting from @ code example
Example: str.substring if 2 letters
public String firstTwo(String str) {
return str.length() < 2 ? str : str.substring(0, 2);
}
public String firstTwo(String str) {
return str.length() < 2 ? str : str.substring(0, 2);
}