Package

Source Code of Test3

import java.text.AttributedString;
import java.util.Iterator;
import java.util.Map;

public class Test3 {
    public static void main(String args[]) {
        try {
            AttributedString as = new AttributedString("A string");
            Map attrs = as.getIterator().getAttributes();
            for (Iterator it = attrs.entrySet().iterator(); it.hasNext(); ) {
                Map.Entry entry = (Map.Entry)it.next();
                System.out.println(entry);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
TOP

Related Classes of Test3

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.