Please help me! :)
package com.codegym.task.task17.task1713;
import java.util.*;
import java.util.ArrayList;
/*
Shared list
*/
public class Solution implements List<Long> {
private ArrayList<Long> original = new ArrayList<>();
public static void main(String[] args) {
@Override
public synchronized boolean isEmpty(){
return original.isEmpty();
}
@Override
public synchronized boolean contains(Object o){
return original.contains( o);
}
@Override
public synchronized Iterator iterator(){
return original.iterator();
}
@Override
public synchronized Object[] toArray(){
return original.toArray();
}
@Override
public synchronized Object[] toArray(Object[] a){
return original.toArray(a);
}
@Override
public synchronized boolean remove(Object o){
return original.remove(o);
}
@Override
public synchronized boolean containsAll(Collection c){
return original.containsAll(c);
}
@Override
public synchronized boolean addAll(Collection c){
return original.addAll(c);
}
@Override
public synchronized boolean addAll(int index, Collection c){
return original.addAll( index, c);
}
@Override
public synchronized boolean removeAll(Collection c){
return original.removeAll(c);
}
@Override
public synchronized boolean retainAll(Collection c){
return original.retainAll( c);
}
@Override
public synchronized boolean equals(Object o){
return original.equals( o);
}
@Override
public synchronized int hashCode(){
return original.hashCode();
}
@Override
public synchronized Object get(int index){
return original.get( index);
}
@Override
public synchronized Object set(int index, Object element){
return original.set(index, element);
}
@Override
public synchronized void add(int index, Object element){
return original.add( index, element);
}
@Override
public synchronized Object remove(int index){
return original.remove(index);
}
@Override
public synchronized int indexOf(Object o){
return original.indexOf(o);
}
@Override
public synchronized int lastIndexOf(Object o){
return original.lastIndexOf(o);
}
@Override
public synchronized ListIterator listIterator(){
return original.listIterator();
}
@Override
public synchronized ListIterator listIterator(int index){
return original.listIterator( index);
}
@Override
public synchronized List subList(int fromIndex,int toIndex){
return original.subList(fromIndex, toIndex);
}
}
}