### Question:
Integers { public static String toString(int value) { if (value == 0) { return "0"; } int count = 2, j = value; boolean negative = value < 0; if (!negative) { count = 1; j = -value; } while ((value /= 10) != 0) { count++; } char[] buffer = new char[count]; do { int ch = 0 - (j % 10); ch += '0'; buffer[--count] = (char) ch; } while ((j /= 10) != 0); if (negative) { buffer[0] = '-'; } return new String(buffer); }  static int decode(String string); static int parseInt(String string); static int parseInt(String string, int radix); static String toBinaryString(int i); static String toHexString(int i); static String toDecimalString(int value); static String toString(int value); static int highestOneBit(int i); static int lowestOneBit(int i); static int numberOfLeadingZeros(int i); static int numberOfTrailingZeros(int i); static int bitCount(int i); static int rotateLeft(int i, int distance); static int rotateRight(int i, int distance); static int reverseBytes(int i); static int reverse(int i); static int digit(char c, int radix); static final int MAX_VALUE; static final int MIN_VALUE; static final int MIN_RADIX; static final int MAX_RADIX; }### Answer:
@Test public void test_toString2() { assertEquals("Returned incorrect String", "-80001", Integers.toString(-80001)); }
@Test public void test_toStringI2() { assertEquals("Returned incorrect String", "-80765", Integers.toString(-80765)); assertEquals("Returned incorrect string", "2147483647", Integers.toString(Integers.MAX_VALUE)); assertEquals("Returned incorrect string", "-2147483647", Integers.toString(-Integers.MAX_VALUE)); assertEquals("Returned incorrect string", "-2147483648", Integers.toString(Integers.MIN_VALUE)); assertEquals("Returned incorrect String", "-1000", Integers.toString(-1000)); assertEquals("Returned incorrect String", "1000", Integers.toString(1000)); assertEquals("Returned incorrect String", "0", Integers.toString(0)); assertEquals("Returned incorrect String", "708", Integers.toString(708)); assertEquals("Returned incorrect String", "-100", Integers.toString(-100)); assertEquals("Returned incorrect String", "-1000000008", Integers.toString(-1000000008)); assertEquals("Returned incorrect String", "2000000008", Integers.toString(2000000008)); }
@Test public void test_toStringI() { assertEquals("-1", Integers.toString(-1)); assertEquals("0", Integers.toString(0)); assertEquals("1", Integers.toString(1)); assertEquals("-1", Integers.toString(0xFFFFFFFF)); }