Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,303 members, 7,957,770 topics. Date: Tuesday, 24 September 2024 at 07:48 PM |
Nairaland Forum / Science/Technology / Programming / Am Hook Up At A Point In My Coding (1070 Views)
How Good Should My Coding Skills BE!! (.net And PHP) / What Are The Differences Between Programming And Coding (2) (3) (4)
Am Hook Up At A Point In My Coding by Nobody: 11:33am On Apr 27, 2007 |
hello nairaland users i am hook up at a point in my coding . plz i need to now how code matrix 3by3 using JAVA and multiply the matrix n times plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz |
Re: Am Hook Up At A Point In My Coding by my2cents(m): 12:31pm On Apr 28, 2007 |
nurexg, your post sounds very cryptic, but if I understand what you are saying, you are looking at a 3D-array if you ask me. As for multiplying n times, again this sounds very cryptic, so I will pass on that one. Assuming my first line above is correct, then you can do something like this: for(i=0; i<arraySize; i++) { do stuff for(j=0; j<arraySize; j++) { do stuff for(k=0; k<arraySize; k++) { do stuff } } } Of course, this is generic. It all depends on what you are trying to do. Perhaps a quick google for "java 3d arrays" is in order? I hope this helps. |
Re: Am Hook Up At A Point In My Coding by my2cents(m): 12:33pm On Apr 29, 2007 |
coming to think of it again, i think u need a 2D-array for(i=0; i<3; i++) { print i for(j=0; j<3; j++) { print j } } Again, very generic, but you should see where this is going. Hopefully this helps. |
Re: Am Hook Up At A Point In My Coding by sbucareer(f): 10:36pm On May 01, 2007 |
You can use multi-dimentional array int problem[][][]; for (int i=0; problem.length() < i; i++) do stuff problem[+i][i+][i]; } |
Re: Am Hook Up At A Point In My Coding by Nobody: 10:50am On May 15, 2007 |
guys i try all but still not working any more idea. |
(1) (Reply)
Learn Adobe.flash.cs5 / Help I Need C Compiler / Help For My Visual Basic Programming
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8 |