How can I divide words, work with each word? How can I add them to the array, change them, and then insert them back and print the contents of the line? The task is this: "in each word of the text, remove the subsequent occurrences of the first letter of this word."
StringBuffer text = new StringBuffer("Slava ochen krasivyi malchik");
StringBuffernot only outdated, but absolutely inapplicable in a multi-threaded environment, and in single-threaded synchronization it makes it slow. - Sergey Gornostaev