Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Ingenu

[java] How to create int[ ][ ] ?

This topic is 6543 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to create a two dimensional array of int, how do I do that ? Thanks. -* So many things to do, so few time to spend *-

Share this post


Link to post
Share on other sites
Advertisement
Sometimes I really find myself sutpid !

I just inverted [][].

I wrote :

int[][] temp = new int[2];

Instead of

int temp[][] = new nt[i][2];

Really stupid thing that cost me more than 10 minutes to find out.
tssss.

anyway thanks for the reply


-* So many things to do, so few time to spend *-

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!