I have a problem! I need to print symbols instead of the given chars! Example: Cake -> !)*& (Something like that). The problem is that I print them with System.out.println and it is fine, but there is a condition that I have to put another symbols as prefix and suffix, and I can't do that, because I print the symbol with switch(case), because I cannot give the variable a new value ( the symbol one). I've tried to make the new word from symbols with for-loop ( newWord += word.charAt), but doesn't work. Then I've seen the StringJoiner, but I want to print the prefix and suffix, without giving it argument, because I can't create the new word and I print the symbols if the char from the String is in the case. How to add the new symbols as first and last ? The stringJoiner wants argument if I use .add . My idea is to print the prefix and suffix, without giving a string. Please Help!