Java Integer to IP Address intToIp(int ipInt)

Here you can find the source of intToIp(int ipInt)

Description

int To Ip

License

Open Source License

Declaration

public static String intToIp(int ipInt) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static String intToIp(int ipInt) {
        return new StringBuilder().append(((ipInt >> 24) & 0xff)).append('.').append((ipInt >> 16) & 0xff)
                .append('.').append((ipInt >> 8) & 0xff).append('.').append((ipInt & 0xff)).toString();
    }/*from  w  ww.ja  v a  2s  .co  m*/
}

Related

  1. intToIp(int i)
  2. intToIp(int i)
  3. intToIP(int intIP)
  4. intToIp(int ip)
  5. intToIP(int ipAddr)
  6. intToIpAddr(int ip)
  7. intToIpAddress(int i)
  8. intToIpString(int ip)
  9. intToIpV4(int i)