Example usage for java.text Format formatToCharacterIterator

List of usage examples for java.text Format formatToCharacterIterator

Introduction

In this page you can find the example usage for java.text Format formatToCharacterIterator.

Prototype

public AttributedCharacterIterator formatToCharacterIterator(Object obj) 

Source Link

Document

Formats an Object producing an AttributedCharacterIterator.

Usage

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());
}