Can someone please help me out!!!I included what I have so far.

*Purpose
Implement a Java-method with three local int variables a, b, c, d and e that sorts these three values in ascending order by comparing and exchanging their values. At the end of the program a <= b <= c <= d <= e must hold.

2 answers

I think you need to suggest some code first for us to comment on.
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 ");
}

}
}
Similar Questions
  1. 1. What is Java SE?A. Java Standard Edition* B. Java Software Editor C. Java Scientific Edition D. Java Software Emulator 2.
    1. answers icon 1 answer
  2. PLZ HELP ASAP1. What is Java SE? A. Java Standard Edition B. Java Software Editor C. Java Scientific Edition D. Java Software
    1. answers icon 2 answers
    1. answers icon 4 answers
  3. Which of the following is part of the signature of a Java method?A. the method body B. modifiers C. the return type D.
    1. answers icon 0 answers
more similar questions