public static String setNumber ( char n ) {
  if ( n == '0' ) {
    return "O-|-OOOO" ;
  }
  else if ( n == '1' ) {
    return "O-|O-OOO" ;
  }
  else if ( n == '2' ) {
    return "O-|OO-OO" ;
  }
  else if ( n == '3' ) {
    return "O-|OOO-O" ;
  }
  else if ( n == '4' ) {
    return "O-|OOOO-" ;
  }
  else if ( n == '5' ) {
    return "-O|-OOOO" ;
  }
  else if ( n == '6' ) {
    return "-O|O-OOO" ;
  }
  else if ( n == '7' ) {
    return "-O|OO-OO" ;
  }
  else if ( n == '8' ) {
    return "-O|OOO-O" ;
  }
  else if ( n == '9' ) {
    return "-O|OOOO-" ;
  }
  return "" ;
}

public static String setNumber ( char n ) { if ( n == '0' ) { return " O - | - OOOO " ; } else if ( n == '1' ) { return " O - | O - OOO " ; } else if ( n == '2' ) { return " O - | OO - OO " ; } else if ( n == '3' ) { return " O - | OOO - O " ; } else if ( n == '4' ) { return " O - | OOOO - " ; } else if ( n == '5' ) { return " - O | - OOOO " ; } else if ( n == '6' ) { return " - O | O - OOO " ; } else if ( n == '7' ) { return " - O | OO - OO " ; } else if ( n == '8' ) { return " - O | OOO - O " ; } else if ( n == '9' ) { return " - O | OOOO - " ; } return " " ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (character_literal))) consequence: (block (return_statement (string_literal))))))))))))) (return_statement (string_literal))))