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}