error: type List does not take parameters

You are likely importing java.awt.List.

You should instead import java.util.List, which is a parameterized type.

Leave a Comment