I wrote a code using two type of Object styles. Both are working properly. I just want to know what is the difference between these both types.
PatientsTabData ob[] = {new PatientsTabData().SetPatientId(
Integer.parseInt(String.valueOf(jsonObject.get("PatientId"))))
.SetRxId(Integer.parseInt(String.valueOf(jsonObject.get("TrackingNumber"))))};
PatientsTabData[] ob = {new PatientsTabData().SetPatientId(
Integer.parseInt(String.valueOf(jsonObject.get("PatientId"))))
.SetRxId(Integer.parseInt(String.valueOf(jsonObject.get("TrackingNumber"))))};
Both types are working.