Question: Java only please. Assign to maxSum the max of (numA, numB) PLUS the max of (numY, numZ). Use just one statement. Hint: Call findMax0) twice

Java only please.

Java only please. Assign to maxSum the max of (numA, numB) PLUS

Assign to maxSum the max of (numA, numB) PLUS the max of (numY, numZ). Use just one statement. Hint: Call findMax0) twice in an expression. Code writing challenge activity demo \begin{tabular}{l|l} CHALENGE \\ ACTIVITY & 4.2.2: Method call in expression. \end{tabular} Assign to maxSum the max of (numA, numB) PLUS the max of (numY, numZ). Use just one statement. Hint: Call findMax() twice in an expression. Code writing challenge activity deme 1819202122232425262728293031323334publicstaticvoidmain(string[]args)Scannerscnr=newScanner(System.in);doublenumA;doublenumB;doublenumY;doublenumz;doublemaxsum;numA=scnr.nextDouble();numB=scnr.nextDouble();numY=scnr.nextDouble();numZ=scnr.nextDouble();V*Yoursolutiongoeshere*;System.out.print("maxsumis:"+maxsum)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!