Question:
How do you output a number that has parenthesis around it in Java?
Answer:
System.out.println ("(" + number + ")");
Code:
public class Example { public static void main(String[] args) { int number = 333; System.out.println("(" + number + ")"); } }
Output:
$ java Example (333)