i am creating a activity having two fragment . one for summation-substraction other for displaying total value the main activity contains variable (total) if in fragment the value is sum then variable (total) is increased by entered value otherwise it is decreased by entered value
and this variable (total) is displayed in second fragment