Advertisement
joseleonweb

Untitled

Jan 26th, 2021
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public class SortExample {
  2.     public static void main(String[] args) {
  3.         int[] numbers = {40, 7, 59, 4, 1};
  4.         displayValues(numbers);
  5.     }//end method main
  6.  
  7.     static void selectionSort(int[] numbers) {
  8.     }//end method selectionSort
  9.  
  10.     static void displayValues(int[] numbers) {
  11.         for(int i = 0; i< numbers.length; i++){
  12.             System.out.print(numbers[i] + " ");
  13.         }//endfor
  14.         System.out.println("\n");
  15.     }//end method displayValues
  16. }//end class SearchExample
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement