error: type List does not take parameters June 14, 2023 by Tarik You are likely importing java.awt.List. You should instead import java.util.List, which is a parameterized type.