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


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: NOOB problem here.

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.

    Example If I had

    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.
    Last edited by Nemus; November 12th, 2011 at 01:38 PM.


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: NOOB problem here.

    You must need to know the basics first.

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: NOOB problem here.

    Oh okay. What do you mean by that?

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: NOOB problem here.

    I mean, you must start taking tutorials from internet.

Similar Threads

  1. Noob needs help!
    By kram in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 2nd, 2011, 05:03 AM
  2. NOOB: Array Help
    By DEAF in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 30th, 2011, 08:39 PM
  3. probably a simple noob problem
    By Unaffiliated in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 22nd, 2011, 11:25 PM
  4. Programming noob here, need help!
    By artenuga54 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 18th, 2010, 04:04 PM
  5. helloworld noob
    By LostFury2012 in forum What's Wrong With My Code?
    Replies: 12
    Last Post: July 14th, 2010, 06:29 AM