For example, if I have a string called 'S
', split it using .split
and store all the words in String[] arr = s.split(" ")
, how would I modify each word? Let's say I want to remove the first letter and add into the end, then insert some more characters. I know I'll be using StringBuilder
class and deleteCharAt,
append()
, etc..
Ex. Hello World ----> elloHto orldWto