Implement a java method with three local int variables A,b,c
Sort three of the values in ascending order by comparing and exchanging their values.
end of program a<=b<=c must hold.
its a util.scanner programme
how do i create. I have tried but to no avail.
package assignment;
import java.util.Scanner;
public class Q3 {
public static void main(String[] args) throws Exception
{
int A,B,C,D;
String result;
Scanner reader= new Scanner(System.in);
System.out.print("Enter value A : ");
A=reader.nextInt();
System.out.print("Enter value B :");
B=reader.nextInt();
System.out.print("Enter value C :");
C=reader.nextInt();
if (A>B)
D=A;
A=B;
B=D;
{
System.out.println("Results is ");
}
}
}
* I only know up to here