• Dear Guest, Please do NOT forget to join our JAVA JOBS (ONLY) FACEBOOK GROUP to be aware of latest JAVA openings, and you may also post any JAVA related queries/jobs.

java programming quesion

#1
Hi Friends , Please help me to write program to get out put as given below

note : The List will contain N Strings ..

List<String> list1=new ArrayList<String>();

list1.add( GP100);
list1.add( GP200);
list1.add( GP300);


i want the combinations like

[GP100 , GP200] ,[GP100 , GP300] ,[GP100 , GP200][GP200 , GP300][GP300 , GP100] ...so on and also [GP100 , GP200,GP300] , [GP200 , GP100,GP300] ..so on

please help me ...
 
Top