Why don't you just create an intermediary method that takes the List <Column <String1, String2>> as the argument and returns the List <String> that you need?
Cheers, Mark Sent from my HTC Android phone. ----- Reply message ----- From: "Raj" <rajkumar....@gmail.com> Date: Sat, Feb 19, 2011 4:02 am Subject: [java ee programming] Java Collections List : Converting from List '<Column <String1, String2>>' to 'List <String1>' To: <java-ee-j2ee-programming-with-passion@googlegroups.com> I have a function that returns a list like this:- List <Column <String1, String2>> Next I want to pass this list to a 2nd function, but 2nd function just needs a list which contains only 1st part (string1) of the Column(s) of the above list. So I want pass just this list to 2nd function:- List <String1> What would be the best way to do this ?? ** [my use case: Both the functions are from a library that I use to access database(Cassandra) for a web application. 1st function gives me a list of all columns which has two parts name(String1) and value(String2). So 1st function gives me a list of all columns(each of which has two strings) then I just need to use the list of column names to supply it to 2nd function that'll query the DB for those columns.] -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en