intArrayToStr method

String intArrayToStr(
  1. List<int> inputArray
)

Implementation

String intArrayToStr(List<int> inputArray) {
  StringBuffer outputString = new StringBuffer();
  for (int i in inputArray) {
    if (i == 1) {
      outputString.write("1");
    } else {
      outputString.write("0");
    }
  }
  return outputString.toString();
}