java - The type of the expression must be an array type but it resolved to Card -


I am doing practically with my project and I get this error:

< Em> "The expression type should be an array type, but it was resolved for the card"

It is on the line that reads: deck [i] = new Card [i]; Here is the code:

  Public square deck  

What am I doing?

remove card to use that example array bracket that you just have Created

  deck [i] = newcard; ^  

Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

ios - How to determine if NSLayoutConstraint is horizontal or vertical? -

javascript - Enable/Disable form elements and changing the values of button at a time? -