This site requires JavaScript, please enable it in your browser!
Greenfoot back
987987aris
987987aris wrote ...

2014/6/11

how can i youse 2dimension panel?

987987aris 987987aris

2014/6/11

#
int B; for(int i=0;i<400;i++) { for(int k=0;k<600;k++) { error here --------->>>>>> // B=0; } }
987987aris 987987aris

2014/6/11

#
    int [][] B;  
     for(int i=0;i<400;i++)  
          {  
              for(int k=0;k<600;k++)  
              {  
                 // B[i][k]=0;  
              }  
          }  
w
davmac davmac

2014/6/11

#
You aren't initialising your array on line 1.
int [][] b = new int[400][600];
(It should also be called 'b' and not 'B' since it is a variable, not a class.)
987987aris 987987aris

2014/6/13

#
yeah thx it really helped me
You need to login to post a reply.