Android Int to IP Convert intToIpaddr(int i)

Here you can find the source of intToIpaddr(int i)

Description

int To Ipaddr

Declaration

public static String intToIpaddr(int i) 

Method Source Code

//package com.java2s;

public class Main {
    public static String intToIpaddr(int i) {
        return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "."
                + ((i >> 16) & 0xFF) + "." + ((i >> 24) & 0xFF);
    }//from   ww  w .  java 2  s  . c  om
}

Related

  1. intToIp(int i)