SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.LinkedHashMap;
  2. import java.util.Scanner;
  3. import java.util.ArrayList;
  4. import java.util.Arrays;
  5. class HelloCodiva {
  6.  
  7.   public static void main(String[] args) {
  8.     Scanner scanner = new Scanner (System.in);
  9.     List<Integer> number = Arrays.stream(scanner.nextLine(). split(" ")).map(Integer::parseInt).sorted((n1,n2) ->n2.compareTo(n1)).collect(Collectors.toList());
  10.     for (int i=0; i<3; i++){
  11.       System.out.print(i+" ");
  12.     }
  13.    
  14.   }
  15.  
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top