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 5 of 5

Thread: arrays

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile arrays

    Hi, can someone assist me in writing a java program that can display the pattern below.



    Input Pattern
    A B C D E
    F G H I J
    K L M N O
    P Q R S T
    U V W X Y
    Output Pattern
    Y T O J E
    X S N I D
    W R M H C
    V Q L G B
    U P K F A
    Example Input
    17 19 23 29 31
    83 91 97 99 2
    59 61 67 71 73
    1 3 7 11 13
    37 41 43 47 53
    Example Output
    53 13 73 2 31
    47 11 71 99 29
    43 7 67 97 23
    41 3 61 91 19
    37 1 59 83 17


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: arrays

    That's not how this works. Do your own homework.

    How To Ask Questions The Smart Way

  3. #3
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: arrays

    Please at least write some code we can see and then we can help you expand on it...
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: arrays

    And this thread probably doesn't belong in the introductions forum...

  5. #5
    Junior Member JavaFreak's Avatar
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: arrays

    This might be helpful for you

    /*edited*/
    Last edited by copeg; November 27th, 2010 at 10:50 AM. Reason: Removed homework solution

Similar Threads

  1. Confused with Arrays
    By Solidius in forum Collections and Generics
    Replies: 3
    Last Post: October 29th, 2010, 09:54 AM
  2. contructors, arrays ?? help
    By joeJavanewbie in forum Object Oriented Programming
    Replies: 1
    Last Post: March 16th, 2010, 01:17 PM
  3. 2 D arrays problem
    By Pulse_Irl in forum Collections and Generics
    Replies: 2
    Last Post: March 5th, 2010, 04:49 PM
  4. Arrays
    By mlan in forum Java Theory & Questions
    Replies: 2
    Last Post: February 26th, 2010, 10:23 AM
  5. 2d Arrays
    By mgutierrez19 in forum Collections and Generics
    Replies: 5
    Last Post: October 27th, 2009, 04:08 PM