bluej

“int cannot be dereferenced” in Java

自作多情 提交于 2019-11-26 06:46:56
问题 I\'m fairly new to Java and I\'m using BlueJ. I keep getting this \"Int cannot be dereferenced\" error when trying to compile and I\'m not sure what the problem is. The error is specifically happening in my if statement at the bottom, where it says \"equals\" is an error and \"int cannot be dereferenced.\" Hope to get some assistance as I have no idea what to do. Thank you in advance! public class Catalog { private Item[] list; private int size; // Construct an empty catalog with the