src/main/constants/MoConstants.java
// then it returns 2 3 4 in an array
then it returns 2 3 4 in an array
then it returns 2 3 4 in an array
public static String[] extractNumbers(String text) {
        String removedBracket = text.replace(LEFT_SQUARE_BRACKET,SPACE)
                .replace(RIGHT_SQUARE_BRACKET,SPACE).replace(SPACE,EMPTY);
        return removedBracket.split(COMMA);
    }
public static String [ ] extractNumbers ( String text ) { String removedBracket = text . replace ( LEFT_SQUARE_BRACKET , SPACE ) . replace ( RIGHT_SQUARE_BRACKET , SPACE ) . replace ( SPACE , EMPTY ) ; return removedBracket . split ( COMMA ) ; }
then it returns 2 3 4 in an array
then it returns 2 3 4 in an array