Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Map;
import java.nio.charset.Charset;
import java.util.Set;

public class Main {
    public static void main(String[] args) {
        Map<String, Charset> map = Charset.availableCharsets();
        Set<String> keys = map.keySet();
        System.out.println("Available  Character Set  Count:   " + keys.size());

        for (String charsetName : keys) {
            System.out.println(charsetName);
        }
    }
}