@DavidMcConnachi/

VolleyBall

Java

No description

fork
loading
Files
  • Main.java
  • Save1
  • save2
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class Main {
    
    public static void main(String[ ] args) {
        int[ ] x = {3,1,5,2,4};
        int a  = 0;
        for (int index = 0; index < x.length - 1; index++) {
            if ( x[index] > x[index + 1]) {
                a = x[index];
                x[index] = x[index + 1];
                x[index + 1] = a;
            }
        }
    }
}