The method clear() is undefined for the type ShoppingCart

后端 未结 3 1739
南方客
南方客 2021-01-13 16:25

I am implementing a shopping website through JSP. I have a Java object called ShoppingCart and one called Item. In ShoppingCart there is a vector w

3条回答
  •  我在风中等你
    2021-01-13 17:13

    Try (re)compiling the code, deploying it to the server and then opening your .jsp page. And do it every time you make changes in java code, not html code.

    Java is not interpreted language, but a compiled programming language, whose programs are converted into an executable form before being executed.

提交回复
热议问题