Not getting unique timestamp
<p>I am generating unique ID for objects to be stored </p>

<p>i am including the timestamp in it </p>

<p>but i ran the for loop  </p>

<pre><code>    for (int i = 0; i &lt; 100; i++) {

        long time = Calendar.getInstance().getTimeInMillis();
        st = Integer.toHexString((int) time);
        System.out.printf("%d %s %d %n", i, st, st.length());
    }
</code></pre>

<p>I am not getting the Unique </p>

<p>I inserted <code>Thread.sleep(15)</code> , then it is giving me unique value</p>

<p>is there another way i get the unique value?</p>
