zlateL86

ADS 1.3 Special join lists

Oct 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4.  
  5. public class SpecialSLLJoin {
  6.    
  7.    
  8.     public static void main(String[] args) throws IOException{
  9.    
  10.         BufferedReader stdin = new BufferedReader(new InputStreamReader(
  11.                 System.in));
  12.         String s = stdin.readLine();
  13.         int N = Integer.parseInt(s);
  14.         s = stdin.readLine();
  15.         String[] pomniza = s.split(" ");
  16.         for (int i = 0; i < N; i++) {
  17.             lista1.insertLast(Integer.parseInt(pomniza[i]));
  18.         }
  19.  
  20.         s = stdin.readLine();
  21.         N = Integer.parseInt(s);
  22.         s = stdin.readLine();
  23.         pomniza = s.split(" ");
  24.         for (int i = 0; i < N; i++) {
  25.             lista2.insertLast(Integer.parseInt(pomniza[i]));
  26.         }
  27.        
  28.         //spoeni = specialJoin(lista1,lista2);
  29.        
  30.     }
  31. }
Add Comment
Please, Sign In to add comment