Android Int to IP Convert intToIp(int i)

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

Description

int To Ip

Declaration

public static String intToIp(int i) 

Method Source Code

//package com.java2s;

public class Main {
    public static String intToIp(int i) {
        return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "."
                + ((i >> 16) & 0xFF) + "." + (i >> 24 & 0xFF);
    }/*  w ww .  j a v a2 s  .  co m*/
}

Related

  1. intToIpaddr(int i)