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

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

javascript - parsing json not working -