1int s=123456;
2			int sec = s % 60;
3		    int min = (s / 60)%60;
4		    int hours = (s/60)/60;
5            
6		    String strSec=(sec<10)?"0"+Integer.toString(sec):Integer.toString(sec);
7		    String strmin=(min<10)?"0"+Integer.toString(min):Integer.toString(min);
8		    String strHours=(hours<10)?"0"+Integer.toString(hours):Integer.toString(hours);
9		    
10		    System.out.println(strHours + ":" + strmin + ":" + strSec);