static void printPattern ( int n ) {
  int line_no = 1 ;
  int curr_star = 0 ;
  for ( line_no = 1 ;
  line_no <= n ;
  ) {
    if ( curr_star < line_no ) {
      System . out . print ( "* " ) ;
      curr_star ++ ;
      continue ;
    }
    if ( curr_star == line_no ) {
      System . out . println ( "" ) ;
      line_no ++ ;
      curr_star = 0 ;
    }
  }
}

static void printPattern ( int n ) { int line_no = 1 ; int curr_star = 0 ; for ( line_no = 1 ; line_no <= n ; ) { if ( curr_star < line_no ) { System . out . print ( " * ▁ " ) ; curr_star ++ ; continue ; } if ( curr_star == line_no ) { System . out . println ( " " ) ; line_no ++ ; curr_star = 0 ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (update_expression (identifier))) (continue_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (update_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))))))))