Java tutorial
public class Main { public static void main(String args[]) { StringBuffer buffer = new StringBuffer(); long longValue = 10000000; buffer.insert(0, longValue); System.out.println(buffer.toString()); } }