Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7.     private static Scanner scanner = new Scanner(System.in);
  8.  
  9.     public static void main(String[] args) {
  10.         int[] userList = new int[10];
  11.  
  12.         for(int i = 0; i < userList.length; i++) {
  13.             userList[i] = scanner.nextInt();
  14.         }
  15.  
  16.         mySortingMethod(userList);
  17.  
  18.         System.out.println(userList);
  19.     }
  20.  
  21.     private static int[] mySortingMethod(int[] userList) {
  22.         int[] sortedUserList = new int[10];
  23.  
  24.             //TODO tutaj zrób swoje sortowanie bombelkowe
  25.  
  26.         return sortedUserList;
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement