Here you can find the source of formatIntAsDottedOctet(int value)
public static String formatIntAsDottedOctet(int value)
//package com.java2s; //License from project: Apache License public class Main { public static String formatIntAsDottedOctet(int value) { return Integer.toString((value >> 24) & 0xff) + "." + Integer.toString((value >> 16) & 0xff) + "." + Integer.toString((value >> 8) & 0xff) + "." + Integer.toString((value >> 0) & 0xff); }/*from w w w. java2 s .c o m*/ }