@@ -0,0 +1,721 @@
+package ru.matevosyan;%0A%0Aimport java.util.Iterator;%0Aimport java.util.NoSuchElementException;%0A%0A/**%0A * CycleDetection class.%0A * Created on 26.05.2017.%0A * @author Matevosyan Vardan%0A * @version 1.0%0A */%0A%0Apublic class CycleDetection%3CE%3E%7B%0A%0A    private Node%3CE%3E last;%0A    private int size = 0;%0A    private Node%3CE%3E first;%0A%0A    /**%0A     * Constructor.%0A     */%0A%0A    public CycleDetection() %7B%0A%0A    %7D%0A%0A%0A    /**%0A     * Class Node describe linkedList entry.%0A     * @param %3CE%3E parameter that defined when create an instance of a class.%0A     */%0A%0A    private static class Node%3CE%3E %7B%0A        E item;%0A        Node%3CE%3E next;%0A%0A        Node(E element, Node%3CE%3E next) %7B%0A            this.item = element;%0A            this.next = next;%0A        %7D%0A    %7D%0A%0A%7D

add CycleDetection.java