Getting this error when calling another method and passing string parameter inside the thready run method....ERROR IS "Change modifier of titlePartnerF to final".. method which I am trying to call using for send push notifications which should be run in background. please help...Thanks in advance
String titlePartnerF= titlePartner;
final MerchantBeanPush pushBeanF = pushBean ;
// MULTHREADING CODE
// KAMLESH DAVE : 03-FEB-2019
Thread t = new Thread(new Runnable() {
public void run() {
/* * Do something inside the thread*/
PushNotifictionHelper.sendPushNotification("W",pushBeanF.getWebToken(),titlePartnerF,messageP, bodyPartner);
}
});
t.start();
System.out.println("we are outside from method now in background+++++++++++");