What am i missing??
package com.codegym.task.task17.task1705;
import java.util.ArrayList;
import java.util.List;
/*
Time in the garden
*/
public class Solution {
public static void main(String[] args) {
}
public static class Garden {
public final List<String> fruits = new ArrayList<>();
public final List<String> vegetables = new ArrayList<>();
public void addFruit(){}
public synchronized void addFruit(int index, String fruit){
fruits.add(index, fruit);}
public void removeFruit(){}
public synchronized void removeFruit(int index){
String fruit = fruits.remove(index);
}
public void addVegetable(){}
public synchronized void addVegetable(int index, String vegetable){
vegetables.add(index, vegetable);
}
public void removeVegetable(){}
public synchronized void removeVegetable(int index){
String vegetable = vegetables.remove(index);
}
}
}