Question: Needs to be done in (Java) cOSC 1046 -F18-TEST 2 the following code snippets 25) (2x3 marks) Identify and correct the errors i Just haeto
cOSC 1046 -F18-TEST 2 the following code snippets 25) (2x3 marks) Identify and correct the errors i Just haeto r public static int max (int first, int missg:.just airly brace the curds brtaco int-maximum -o-,n, if (first second maximum first else maximum -second No shtement found, how to Pd an output. brace you just have to put the brt j- Trending.brtabe or, rel -lkeree, 0a J b. public static int Difference (int first, int second) t int difference(first secon return difference; hasst static void Difference(insefirst-The tuolo int difference irst secco System.out.printin AisferencS ceJust have to p onynohe olton the ucahon
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
