Hi, > a) Use a HashMap<Integer,String> where the key is i * j and value is > my required String "i" + "-" +j
An i * j key will result on the same key for both (i = 1, j = 2) and (i = 2, j = 1). > c) Any other great suggestion? StringBuilder can help. []'s Rodrigo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---