lojix/search/src/main/com/thesett/aima/search/examples/eightpuzzle/EightPuzzleState.java
private static List<Character> stringToCharList(String boardString)
    {
        // Turn the goal state into a list of characters
        char[] chars = new char[9];

        boardString.getChars(0, 9, chars, 0);

        List<Character> charList = new ArrayList<Character>();

        for (int l = 0; l < 9; l++)
        {
            charList.add(chars[l]);
        }

        return charList;
    }
private static List<Character> stringToCharList(String boardString)
    {
        // Turn the goal state into a list of characters
        char[] chars = new char[9];

        boardString.getChars(0, 9, chars, 0);

        List<Character> charList = new ArrayList<Character>();

        for (int l = 0; l < 9; l++)
        {
            charList.add(chars[l]);
        }

        return charList;
    }
private static List < Character > stringToCharList ( String boardString ) { // Turn the goal state into a list of characters char [ ] chars = new char [ 9 ] ; boardString . getChars ( 0 , 9 , chars , 0 ) ; List < Character > charList = new ArrayList < Character > ( ) ; for ( int l = 0 ; l < 9 ; l ++ ) { charList . add ( chars [ l ] ) ; } return charList ; }
Turns a string representation of the board into a list of characters.

@param  boardString The board as a string of nine characters.

@return The board as a List of characters.
Turns a string representation of the board into a list of characters .