SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 57 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 Hello {
  6.   public static void main(String[] args) {
  7.     Scanner scanner = new Scanner (System.in);
  8.     String [] line =Arrays.stream(scanner.nextLine().split(" ")).filter(l -> l.lenght()%2 ==0).toArray(String[]::new);
  9.    
  10.     for (String l:line){
  11.       System.out.println(l);
  12.     }
  13.    
  14.    
  15.    
  16.   }
  17. }
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
 
Top