Mega Code Archive

 
Categories / Java / Data Type
 

Get a List of Short Month Names

import java.text.DateFormatSymbols; public class Main {   public static void main(String[] args) {     String[] shortMonths = new DateFormatSymbols().getShortMonths();     for (int i = 0; i < shortMonths.length; i++) {       String shortMonth = shortMonths[i];       System.out.println("shortMonth = " + shortMonth);     }   } }