How to show negative numeric inside parentheses?

( gives negative numeric values parentheses.

Syntax

fmt.format("%(d", -100);
Example

The ( flag shows negative numeric inside parentheses, rather than with a leading -.

import java.util.Formatter;
public class Main {
public static void main(String args[]) {
Formatter fmt = new Formatter();
fmt.format("%(d", -100);
System.out.println(fmt);
}
}
The output:
(100)