List of usage examples for java.text Format formatToCharacterIterator
public AttributedCharacterIterator formatToCharacterIterator(Object obj)
AttributedCharacterIterator
. From source file:Main.java
public static void main(String[] argv) throws Exception { Format formatter = new SimpleDateFormat("MMM"); CharacterIterator s = formatter.formatToCharacterIterator(new Date()); System.out.println(s.last()); }