₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,707 members, 8,513,299 topics. Date: Wednesday, 04 November 2026 at 05:49 PM

Toggle theme

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 (1140 Views)

1 Reply (Go Down)

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 huh huh huh
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 tongue

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

How Good Should My Coding Skills BE!! (.net And PHP) • What Are The Differences Between Programming And Coding • 2 • 3 • 4

2012 Software Freedom Day • How To Deploy An Asp.net Web Application • Universities Shud Offer Degrees In Programming