Mega Code Archive

 
Categories / Java Tutorial / Development
 

Three-digit day of the year

import java.util.Date; public class MainClass {   public static void main(String[] args) {     Date now = new Date();     System.out.printf("three-digit day of the year: %tj/%Tj\n", now, now);   } } three-digit day of the year: 144/144