cannot find symbol, java, classloader

后端 未结 2 491
执笔经年
执笔经年 2021-01-29 03:23

Currently doing a typestate project and I am having problems with importing the List class. When I try to compile the class it throws an error in command line saying cannot find

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-29 04:22

    You are using the interface List but you didn't import it, it says that It can not find symbol java.lang.List because it is trying to search this class in the default java.lang package, add the import java.util.List and you are not going to have problems

提交回复
热议问题