### Question:
IpUtils { public static String longToIp(long ipLong) { long[] ipNumbers = new long[4]; long tmp = 0xFF; ipNumbers[0] = ipLong >> 24 & tmp; ipNumbers[1] = ipLong >> 16 & tmp; ipNumbers[2] = ipLong >> 8 & tmp; ipNumbers[3] = ipLong & tmp; return ipNumbers[0] + DOT + ipNumbers[1] + DOT + ipNumbers[2] + DOT + ipNumbers[3]; } private  IpUtils(); static Long ipToLong(String ipStr); static String longToIp(long ipLong); static final String DOT; }### Answer:
@Test public void longToIp() { String ip = "192.168.110.1"; String ip2 = "0.0.0.0"; long longNum = 3232263681L; String i1 = IpUtils.longToIp(longNum); String i2 = IpUtils.longToIp(0); Assert.assertEquals(ip, i1); Assert.assertEquals(ip2, i2); }