Example usage for java.nio.charset Charset compareTo

List of usage examples for java.nio.charset Charset compareTo

Introduction

In this page you can find the example usage for java.nio.charset Charset compareTo.

Prototype

public final int compareTo(Charset that) 

Source Link

Document

Compares this charset to another.

Usage

From source file:Main.java

public static void main(String[] args) {
    Charset csets = Charset.forName("UTF16");
    Charset csets1 = Charset.forName("UTF-8");
    System.out.println(csets.compareTo(csets1));

}