I have a basic idea on how to accomplish this task, but I'm not sure if I am doing it right. So, we have a WindyString class with a meteor strike. After use:
System.out.println(WindyString.blow(
"Abrakadabra! The second chance to pass has already BEGUN! "));
we should get something like this:
e a e a a ea y
br k d br ! Th s c nd ch nc t p ss h s lr d B G N!
A a a a a e o o a E U
therefore, in a nutshell, in every second word, we select all the vowels and move them one line above. In the second half of the words, we move the vowels one line below.
I know that I have to split the string into tokens using the tokenizer or the split method, but what's next? Create 3 arrays, each of which represents each row?
source
share