public int intMax(int a, int b, int c) {if(a>b){int minValue=Math.min(a,b);return a;}if(a>c){int minValue=Math.min(a,c);return a;}if(b>c){int minValue=Math.min(b,c);return b;}return c;}

public int intMax(int a, int b, int c) {if((a>b)&(a>c)) { //int minValue=Math.min(a,b); return a; } if(b>c) { //int minValue=Math.min(a,c); return b; }return 0; /*if(b>c) { int minValue=Math.min(b,c); return b; } return c; }*/}

Expected Run
intMax(1, 2, 3) → 3 0 X
intMax(1, 3, 2) → 3 3 OK
intMax(3, 2, 1) → 3 3 OK
intMax(9, 3, 3) → 9 9 OK
intMax(3, 9, 3) → 9 9 OK
intMax(3, 3, 9) → 9 0 X
intMax(8, 2, 3) → 8 8 OK
intMax(-3, -1, -2) → -1 -1 OK
intMax(6, 2, 5) → 6 6 OK
intMax(5, 6, 2) → 6 6 OK
intMax(5, 2, 6) → 6 0 X
Correct for more than half the tests

complete code is

public class Test4 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int largeValue=intMax(5,6,2); System.out.println("largeValue is--->"+largeValue); } public static int intMax(int a, int b, int c) { if((a>b)&(a>c)) { //int minValue=Math.min(a,b); return a; } if(b>c) { //int minValue=Math.min(a,c); return b; }return 0; /*if(b>c) { int minValue=Math.min(b,c); return b; } return c; }*/}}

You have a 'return 0;' statement in your code which should be 'return c;' The final 'if' block is remarked out - you can remove this completely if you wish.

>> you mean nine separate java apllications. Like nine different java main programs. Please advise
No, of course not!

What was meant was this:

public int intMax(int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10) { return Math.max(Math.max(Math.max(Math.max(Math.max(Math.max(Math.max(Math.max(Math.max(p1,p2),p3), p4),p5),p6),p7),p8),p9),p10);}

public class Test7 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int largeValue=intMax(5,6,8); System.out.println("largeValue is--->"+largeValue); } public static int intMax(int a, int b, int c) { if((a>b)&&(a>c)) { //int minValue=Math.min(a,b); return a; } if(b>c) { //int minValue=Math.min(a,c); return b; }return c;}}

if you are referring to the scenario c> a,
it was covered only when a<=b, otherwise your initial if(a>b)
would have immediately returned a
but instead of returning a, you could have returned Math.max(a,c);

>> i did not understand how that scenario is covered. Please advise
Which scenario?

If you read your code - which I commented - you simply see that it covers all scenario's:

public static int intMax(int a, int b, int c) { if ((a>b)&&(a>c)) { // a is bigger than b and bigger than c... return a; // ...so return it } // If you're here, you already know that a is not the biggest one, so let's focus on b and c if (b>c) { // b is bigger than c... return b; // ... so return b } // if you're here, you know that a is not the biggest, b is not the biggest, so... return c; // c must be the biggest. Well, return it.}

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space.
w60 means Windows Vista or Windows Server 2008.
w61 means Windows 7 or Windows Server 2008 R2.
There are various …

The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program.
Download Eclipse installation zip file:
Extract files from zip file:
Download and install JDK 8:
Open Eclipse and …