About assignment calculations in service, using the trinocular operator
Note: the judgment is "= =" and the assignment is "="
Privatestipend Getcounttotalize (stipend e) {floatCount=0; Count=count+ (E.getbasic ()==NULL? 0: E.getbasic (). Longvalue ());//count=count+e.getbasic (). Longvalue ();count=count+ (E.getduty ()==NULL? 0: E.getduty (). Longvalue ());//count=count+e.getduty (). Longvalue ();count=count+ (E.geteat ()==NULL? 0: E.geteat (). Longvalue ());//count=count+e.geteat (). Longvalue ();count=count+ (E.gethouse ()==NULL? 0: E.gethouse (). Longvalue ());//count=count+e.gethouse (). Longvalue ();count=count+ (E.getother ()==NULL? 0: E.getother (). Longvalue ()); Count=count-(E.getpunishment ()==NULL? 0: E.getpunishment (). Longvalue ()); Count=count-(E.getscot ()==NULL? 0: E.getscot (). Longvalue ()); System.out.println ("============================"); System.out.println (count); E.settotalize (NewFloat (count)); returne; }
Error correcting this