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

Thread: ArrayList problem.

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ArrayList problem.

    hello can somebody write a code for this array list in java I want the output as required
    there is a array list of 1,2,3 and to this {1}-->{4}-->{9} = {1,4,9} ,
    {2}-->{5}-->{10} = {2,5,10} and so on

    {1,2,3}
    {4,5} {9} {10}
    {6} {11}
    {7,8} {12,13} {14,15}

    output : {1,4,9} {1,5,10} {2,6,11} {3,7,12} {3,7,13} {3,8,14} {3,8,15}


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: ArrayList problem.

    Post moved to its own thread.

    What have you tired?

    Post your code and the questions about the problems you are having with it.

    You need to explain the algorithm for creating the output given the input. It doesn't make any sense to me.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Arraylist get problem
    By soniabobit in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 24th, 2013, 06:40 PM
  2. ArrayList problem, probably very simple.
    By tomtensfarfar in forum What's Wrong With My Code?
    Replies: 9
    Last Post: November 4th, 2013, 06:16 PM
  3. ArrayList problem
    By Renhik in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 8th, 2012, 11:48 AM
  4. Problem with ArrayList
    By waltersk20 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 26th, 2010, 08:37 PM
  5. ArrayList Problem
    By Marty in forum Collections and Generics
    Replies: 16
    Last Post: August 31st, 2010, 03:47 AM