Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Repetition_test {
- public static void main(String[] args) {
- Repetition repetition = new Repetition();
- List <Integer> x = new ArrayList <Integer>();
- x.add(2);
- x.add(3);
- x.add(4);
- List <Integer> y = new ArrayList <Integer>();
- y.add(2);
- y.add(3);
- y.add(4);
- y.add(2);
- y.add(3);
- y.add(4);
- y.add(2);
- y.add(3);
- y.add(4);
- if (repetition.consistsOf(x, y)) {
- System.out.println("ye");
- }
- else {
- System.out.println("nej");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement