type mismatch cannot convert from element type object to string

后端 未结 4 481
日久生厌
日久生厌 2021-01-14 22:15

I keep getting this error when making a search method in my code to search through string. I have gone through alot of examples trying to fix this but I cant find any. Thank

4条回答
  •  萌比男神i
    2021-01-14 22:35

    You don't declare the notes variable

    public class Notebook{
      private ArrayList notes;
    ...
    

提交回复
热议问题