Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. import java.util.*;
  2. public class Repetition_test {
  3.    
  4.     public static void main(String[] args) {
  5.        
  6.         Repetition repetition = new Repetition();
  7.         List <Integer> x = new ArrayList <Integer>();
  8.         x.add(2);
  9.         x.add(3);
  10.         x.add(4);
  11.         List <Integer> y = new ArrayList <Integer>();
  12.         y.add(2);
  13.         y.add(3);
  14.         y.add(4);
  15.         y.add(2);
  16.         y.add(3);
  17.         y.add(4);
  18.         y.add(2);
  19.         y.add(3);
  20.         y.add(4);
  21.         if (repetition.consistsOf(x, y)) {
  22.             System.out.println("ye");
  23.         }
  24.         else {
  25.             System.out.println("nej");
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement