Document Preview

ITEC 1620 Assignment Page 1 ITEC 1620 Assignment Page 2 ITEC 1620 Assignment Page 3 ITEC 1620 Assignment Page 4
1 / 7

About the Download

Session: Winter 2019 Assignment 5
Question 1.
public class MultiConcat { public static String multiConcat(String s, int count){ String concatenated = “”;
if (count < 2) return s;
else{
for (int i = 0; i < count; i++ ) concatenated += s;
} return concatenated; }
public static String multiConcat(String s){ return s += s;
}
}
Question 2. public interface Priority {