in C language i learned Precision paramater to show how many decimal point to print...

in java how to do this precision for double, float etc....................