Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Algorithms/Find maximum/Java findMax method 6

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

private int findMaxFourEle(int i_intA,int i_intB,int i_intC, int i_intD) { int max = i_intA; if ( i_intB > max ) max = i_intB; if ( i_intC > max ) max = i_intC; if ( i_intD > max ) max = i_intD; return max; } // end method public int findMaxThreeEle(int i_intA,int i_intB,int i_intC) { return findMaxFourEle(i_intA,i_intB,i_intC,i_intC); } // end method