int IP To String Ip - Android Phone

Android examples for Phone:wifi

Description

int IP To String Ip

Demo Code


//package com.java2s;

public class Main {
    public static String intIPToStringIp(int i) {
        return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "."
                + ((i >> 16) & 0xFF) + "." + (i >> 24 & 0xFF);
    }//ww w  .  ja v  a2s  . c  o m
}

Related Tutorials