how to put parentheses in java string code example Example: how to add parentheses for number in java ;System.out.println('(' + 9 + ')')