How to color System.out.println output?

How can I color Java output? For example in C and other languages I can use ANSI-escape like \033[0m to do this. But in Java it doesn't work. public static void main(String[] x) { System.out.