public static void main ( String [ ] args ) {
  int a = 2 ;
  float b = 2.0f ;
  double c = 2.0003 ;
  char d = 'D' ;
  System . out . printf ( "Integer value is = %d" , a ) ;
  System . out . printf ( "\nFloat value is = %f" , b ) ;
  System . out . printf ( "\nDouble value is = %f" , c ) ;
  System . out . printf ( "\nChar value is = %c" , d ) ;
}

public static void main ( String [ ] args ) { int a = 2 ; float b = 2.0f ; double c = 2.0003 ; char d = ' D ' ; System . out . printf ( " Integer ▁ value ▁ is ▁ = ▁ % d " , a ) ; System . out . printf ( " \n Float ▁ value ▁ is ▁ = ▁ % f " , b ) ; System . out . printf ( " \n Double ▁ value ▁ is ▁ = ▁ % f " , c ) ; System . out . printf ( " \n Char ▁ value ▁ is ▁ = ▁ % c " , d ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_floating_point_literal))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_floating_point_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (character_literal))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier))))))