private char[] findEncryptedCharFromMatrix(char char1, char char2) {
        char[] returnData = new char[2];
        int[] rowPosition = new int[2];
        int[] colPosition = new int[2];

        // Finding Row & Column Position from the PlayFairMatrix
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < 5; j++) {
                if (char1 == playFairMatrix[i][j].charValue()) {
                    rowPosition[0] = i;
                    colPosition[0] = j;
                } else if (char2 == playFairMatrix[i][j].charValue()) {
                    rowPosition[1] = i;
                    colPosition[1] = j;
                }
            }
        }

        // If Both Characters are in the same Row
        if (rowPosition[0] == rowPosition[1]) {
            returnData[0] = playFairMatrix[rowPosition[0]][(colPosition[0] + 1) % 5];
            returnData[1] = playFairMatrix[rowPosition[0]][(colPosition[1] + 1) % 5];
        } // If Both Characters are in the same Column
        else if (colPosition[0] == colPosition[1]) {
            returnData[0] = playFairMatrix[(rowPosition[0] + 1) % 5][colPosition[0]];
            returnData[1] = playFairMatrix[(rowPosition[1] + 1) % 5][colPosition[1]];
        } // If Both Forming Rect by their position
        else {
            returnData[0] = playFairMatrix[rowPosition[0]][colPosition[1]];
            returnData[1] = playFairMatrix[rowPosition[1]][colPosition[0]];
        }
        return returnData;
    }