public static void main(String args[]){
        MinCostPath mcp = new MinCostPath();
        int cost[][] = {{1,2,3},{4,8,2},{1,5,3},{6,2,9}};
        int result = mcp.minCost(cost, 3, 2);
        int result1 = mcp.minCostRec(cost, 3, 2);
        System.out.println(result);
        System.out.println(result1);
    }
http://www.geeksforgeeks.org/dynamic-programming-set-6-min-cost-path/
src/com/interview/dynamic/MinCostPath.java