Debugging a ClassNotFoundException

前端 未结 1 1221
旧巷少年郎
旧巷少年郎 2021-01-26 01:10

In my code, I have a nestted class that holds an object and an integer. This is to mark the beginning and end locations for a sublist method.

The code executes to the p

相关标签:
1条回答
  • 2021-01-26 01:41

    It would help if you could clarify what the exception is, however, I am guessing that you are getting a ClassNotFound for E.

    It looks like your professor has not clarified the concept of Generics yet. I would recommend looking over what a generic data structure is. THe advice I would give is to look for why E is not defined and why you are trying to create a list of them.

    I think that the following link might help to clarify the syntax and the concepts behind them: http://download.oracle.com/javase/tutorial/extra/generics/index.html

    Particularly the following section: http://download.oracle.com/javase/tutorial/extra/generics/simple.html

    0 讨论(0)
提交回复
热议问题