Now i have generated a string which shows the current time. I'm wondering how to automatically refresh that string format
so it could be updated. Thanks in advance
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
String format = simpleDateFormat.format(new Date());