Computer Science, asked by Abhishiktasen, 1 day ago

Write a java program to arrange 3 numbers input by user in asending order​

Answers

Answered by barani7953
0

Explanation:

I'm currently working on a program and I just cannot get it to work the way it is supposed to work. I need to enter three integers using a scanner, and then output the numbers in ascending order. I technically got this to work but it didn't follow the structure that it HAS to follow. In my main method I have the declarations and input. Then I have to use a second method that does the sorting. I for the life of me cannot get the numbers to sort at all actually when I put the sorting inside this new method. It compiles, I run it, enter the numbers and it ends the program. Without the second method it runs correct, mostly. When it ran outside the second method there was also some errors I believe in

Similar questions