package com.aravind.workspace;

import org.apache.cordova.*;
import org.json.JSONArray;
import org.json.JSONException;

public class MFPAndroid extends CordovaPlugin {
    @Override
    public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException {
        if (action.equals("greet")) {
            String name = data.getString(0);
            String message = "Hello, " + name;
            callbackContext.success(message);
            return true;
        } else {
            return false;
        }
    }
}

package com.aravind.workspace;

import org.apache.cordova.*;
import org.json.JSONArray;
import org.json.JSONException;

// public class MFPAndroid extends CordovaPlugin {
//     @Override
//     public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException {
//         if (action.equals("greet")) {
//             String name = data.getString(0);
//             String message = "Hello, " + name;
//             callbackContext.success(message);
//             return true;
//         } else {
//             return false;
//         }
//     }
// }

Update MFPAndroid.java