Data Type Java

Format Specifier           Conversion Applied
%a                         Floating-point hexadecimal
%A
%b                         Boolean
%B
%c                         Character
%C
%d                         Decimal integer
%h                         Hash code of the argument
%H
%e                         Scientific notation
%E
%f                         Decimal floating-point
%g                         Uses %e or %f, whichever is shorter
%G
%o                         Octal integer
%n                         Inserts a newline character
%s                         String
%S
%t                         Time and date
%T
%x                         Integer hexadecimal
%X
%%                         Inserts a % sign