Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

1. ## NOOB problem here.

Okay so here's my assignment:

Get user input dimensions for 2 Matrices. One of the matrix is filled with Numbers(INT) and the other is filled with Single Letters.(STRING)

After both matrices are filled. Both matrices needs to be transformed into another one. Using these specifics: Compute the output matrix C in which each element Cij is the result of replicating each element Aij exactly Bij times.

Matrix A=
{ B C E
A F G
C G K }

Matrix B=
{1 3 4
2 1 2
1 2 4 }
The matrix C would be transposed into:

Matrix C =
{ B CCC EEEE
AA F GG
C GG KKKK }

Okay. So far I've had no problem creating Matrix A and Matrix B. And I have no problem transposing a third Matrix(C) if A and B are both filled with Integers but now that A is filled with Strings Chars, I can not seem to find the solution. If anyone could send me into the right direction, articles or anything regarding this, it would be greatly appreciated.

Thank you.

2. ## Re: NOOB problem here.

You must need to know the basics first.

3. ## Re: NOOB problem here.

Oh okay. What do you mean by that?

4. ## Re: NOOB problem here.

I mean, you must start taking tutorials from internet.