Am Hook Up At A Point In My Coding - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Am Hook Up At A Point In My Coding (1123 Views)
| 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. |
How Good Should My Coding Skills BE!! (.net And PHP) • What Are The Differences Between Programming And Coding • 2 • 3 • 4
Need Murach C# 2008 • Little Job For An Html Programmer • What Does It Cost?
