How come the following prints boss and not bass?
String boss = \"boss\"; char[] array = boss.toCharArray(); for(char c : array) { if (c== \'o\') c =
Changes applied in 'for each' loop are made just inside her body (that's because values are copied, not referentions). To work on referentions use 'for' loop.