Imagine that the user provides a one dimensional list. Return a one dimensional list that is the
version of that original list where each item is a string representation of all pairs in the original list. For example, if the user enters [1, 2, 3, 4] ,
your code would return the array ["1-2", "1-3", "1-4", "2-1", "2-3", "2-4", "3-1", "3-2", "3-4",
"4-1", "4-2", "4-3"] .
Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the
assessment. |