Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- private static Scanner scanner = new Scanner(System.in);
- public static void main(String[] args) {
- int[] userList = new int[10];
- for(int i = 0; i < userList.length; i++) {
- userList[i] = scanner.nextInt();
- }
- mySortingMethod(userList);
- System.out.println(userList);
- }
- private static int[] mySortingMethod(int[] userList) {
- int[] sortedUserList = new int[10];
- //TODO tutaj zrób swoje sortowanie bombelkowe
- return sortedUserList;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement