public static List < String > allPalindromeSubstring ( String s ) {
  List < String > list = new ArrayList < String > ( ) ;
  for ( float pivot = 0 ;
  pivot < s . length ( ) ;
  pivot += .5 ) {
    float palindromeRadius = pivot - ( int ) pivot ;
    while ( ( pivot + palindromeRadius ) < s . length ( ) && ( pivot - palindromeRadius ) >= 0 && s . charAt ( ( int ) ( pivot - palindromeRadius ) ) == s . charAt ( ( int ) ( pivot + palindromeRadius ) ) ) {
      list . add ( s . substring ( ( int ) ( pivot - palindromeRadius ) , ( int ) ( pivot + palindromeRadius + 1 ) ) ) ;
      palindromeRadius ++ ;
    }
  }
  return list ;
}

public static List < String > allPalindromeSubstring ( String s ) { List < String > list = new ArrayList < String > ( ) ; for ( float pivot = 0 ; pivot < s . length ( ) ; pivot += .5 ) { float palindromeRadius = pivot - ( int ) pivot ; while ( ( pivot + palindromeRadius ) < s . length ( ) && ( pivot - palindromeRadius ) >= 0 && s . charAt ( ( int ) ( pivot - palindromeRadius ) ) == s . charAt ( ( int ) ( pivot + palindromeRadius ) ) ) { list . add ( s . substring ( ( int ) ( pivot - palindromeRadius ) , ( int ) ( pivot + palindromeRadius + 1 ) ) ) ; palindromeRadius ++ ; } } return list ; }
(method_declaration (modifiers) type: (generic_type (type_identifier) (type_arguments (type_identifier))) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) 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)))) (for_statement init: (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (assignment_expression left: (identifier) right: (decimal_floating_point_literal)) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (cast_expression type: (integral_type) value: (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal))) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))))))))) (expression_statement (update_expression (identifier))))))) (return_statement (identifier))))