I wanted to replace all the vowels from the words Apple and Lenovo. Something like this as an output. %20ppl%20, L%20n%20v%20
Here's my code
String[] dalek = new String[]{"Apple","Lenovo"};
String[] wy = new String[]{"a","e","i","o","u"};
for (int i = 0 ; i < dalek.length; i++ )
String wyx = wy[i];
dalek[i] = dalek[i].replace(wyx,"%20");
System.out.println(Arrays.toString(dalek));
dalek[i] = dalek[i].replaceAll("[aeiou]","%20");
? – Thomas Jul 8 '14 at 12:11break;
in iOS SSL code) are the reason why at our company we always use curly braces, even for one-line statements. – Thomas Jul 8 '14 at 12:13break
butgoto
) ... ;) – Thomas Jul 8 '14 at 12:24