How to make a timer that runs only once?

It is necessary that after 60 seconds the item A is deleted from the list. If necessary, here is my code:

public class Solution {
public static void main(String[] args) {
    List<String> list = Arrays.asList("A", "B");
Asked on January 19, 2020 in Programming.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.