Here you can find the source of long2Ip(final long ip)
public static String long2Ip(final long ip)
//package com.java2s; // Licensed to the Apache Software Foundation (ASF) under one public class Main { public static String long2Ip(final long ip) { final StringBuilder result = new StringBuilder(15); result.append(ip >> 24 & 0xff).append("."); result.append(ip >> 16 & 0xff).append("."); result.append(ip >> 8 & 0xff).append("."); result.append(ip & 0xff);/*from w ww . j av a 2 s . c om*/ return result.toString(); } }