Update a Localtime object from LocalTime.of() method on the java console : <p>I'm having a little issue here if anyone could help me with it I would really appreciate it ! </p>

<p>When I try to update a <code>LocalTime</code> object created from the <code>LocalTime.now()</code> method so I can see time passing, <strong>it works</strong> here is the code : </p>

<pre><code>     public static void main(String[] args) {

        LocalTime d = LocalTime.now();
        String h = String.valueOf(d.getHour());
        String m = String.valueOf(d.getMinute());
        String s = String.valueOf(d.getSecond());
        System.out.print("\r"+h + ":" + m + ":" + s);

        //Update :
        Thread.sleep(1000);


     }
</code></pre>

<p>Output :</p>

<pre><code>1:53:2 (time is passing)
</code></pre>

<p>But when I run this : </p>

<pre><code>     public static void main(String[] args) {

        LocalTime d = LocalTime.of(12, 15, 33);
        String h = String.valueOf(d.getHour());
        String m = String.valueOf(d.getMinute());
        String s = String.valueOf(d.getSecond());
        System.out.print("\r"+h + ":" + m + ":" + s);

        //Update :
        Thread.sleep(1000);


     }
</code></pre>

<p>Output : </p>

<pre><code>12:15:33 (time is not passing)
</code></pre>

<p>Can someone tell me why it's not updating ? And how can I get time running with a <code>LocalTime</code> object from a user input ?</p>

<p>Thanks a lot for your time !</p>
