public static void main ( String [ ] args ) {
  ArrayList < Integer > al = new ArrayList < Integer > ( ) ;
  al . add ( 1 ) ;
  al . add ( 2 ) ;
  al . add ( 3 ) ;
  al . add ( 4 ) ;
  System . out . println ( countSubArrayProductLessThanK ( al , 10 ) ) ;
  ArrayList < Integer > al1 = new ArrayList < Integer > ( ) ;
  al1 . add ( 1 ) ;
  al1 . add ( 9 ) ;
  al1 . add ( 2 ) ;
  al1 . add ( 8 ) ;
  al1 . add ( 6 ) ;
  al1 . add ( 4 ) ;
  al1 . add ( 3 ) ;
  System . out . println ( countSubArrayProductLessThanK ( al1 , 100 ) ) ;
  ArrayList < Integer > al2 = new ArrayList < Integer > ( ) ;
  al2 . add ( 5 ) ;
  al2 . add ( 3 ) ;
  al2 . add ( 2 ) ;
  System . out . println ( countSubArrayProductLessThanK ( al2 , 16 ) ) ;
  ArrayList < Integer > al3 = new ArrayList < Integer > ( ) ;
  al3 . add ( 100 ) ;
  al3 . add ( 200 ) ;
  System . out . println ( countSubArrayProductLessThanK ( al3 , 100 ) ) ;
  ArrayList < Integer > al4 = new ArrayList < Integer > ( ) ;
  al4 . add ( 100 ) ;
  al4 . add ( 200 ) ;
  System . out . println ( countSubArrayProductLessThanK ( al3 , 101 ) ) ;
}

public static void main ( String [ ] args ) { ArrayList < Integer > al = new ArrayList < Integer > ( ) ; al . add ( 1 ) ; al . add ( 2 ) ; al . add ( 3 ) ; al . add ( 4 ) ; System . out . println ( countSubArrayProductLessThanK ( al , 10 ) ) ; ArrayList < Integer > al1 = new ArrayList < Integer > ( ) ; al1 . add ( 1 ) ; al1 . add ( 9 ) ; al1 . add ( 2 ) ; al1 . add ( 8 ) ; al1 . add ( 6 ) ; al1 . add ( 4 ) ; al1 . add ( 3 ) ; System . out . println ( countSubArrayProductLessThanK ( al1 , 100 ) ) ; ArrayList < Integer > al2 = new ArrayList < Integer > ( ) ; al2 . add ( 5 ) ; al2 . add ( 3 ) ; al2 . add ( 2 ) ; System . out . println ( countSubArrayProductLessThanK ( al2 , 16 ) ) ; ArrayList < Integer > al3 = new ArrayList < Integer > ( ) ; al3 . add ( 100 ) ; al3 . add ( 200 ) ; System . out . println ( countSubArrayProductLessThanK ( al3 , 100 ) ) ; ArrayList < Integer > al4 = new ArrayList < Integer > ( ) ; al4 . add ( 100 ) ; al4 . add ( 200 ) ; System . out . println ( countSubArrayProductLessThanK ( al3 , 101 ) ) ; }
(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: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal))))))))