2 dimensional array

Go down

2 dimensional array

Post  suz on Mon Sep 24, 2007 10:19 pm

i'm doing a game in j2me,..its BRAIN VITA..
can u guide me how to use matrix in j2me./
i mean how to declare 2 dimensional array..?

suz

Posts : 12
Join date : 2007-09-20

View user profile

Back to top Go down

Re: 2 dimenstional array

Post  Nishtha on Mon Sep 24, 2007 10:29 pm

Hi Suz,

In following way we declare 2 dimenstional array :-

int componentRelativePosition[][] = {
{ 1,2 },
{ 3,4},
{ 5,6 }} ;

Please feel free to contact for further queries.

thanks
Nishtha.

Nishtha

Posts : 25
Join date : 2007-09-09

View user profile http://sahil-bedi.blogspot.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum