Here you can find the source of longToString(long value)
private static String longToString(long value)
//package com.java2s; //License from project: Apache License public class Main { private static String longToString(long value) { if (value == Integer.MIN_VALUE) { return "Integer.MIN_VALUE"; } else if (value == Integer.MAX_VALUE) { return "Integer.MAX_VALUE"; } else if (value == Long.MIN_VALUE) { return "Long.MIN_VALUE"; } else if (value == Long.MAX_VALUE) { return "Long.MAX_VALUE"; } else {//w ww .j a va 2s . co m return Long.toString(value); } } }