+ 1
Help with string
If the string is String name="My name is Altina"; How can I output only "is Altina"
2 ответов
+ 2
Use the method 'substring':
https://beginnersbook.com/2013/12/java-string-substring-method-example/
+ 2
You could use the String.split () method.
String [] split = name.split (" ");
split = [My, name, is, Altina]