Java StandardCharsets UTF_16BE

Syntax

StandardCharsets.UTF_16BE has the following syntax.

public static final Charset UTF_16BE

Example

In the following code shows how to use StandardCharsets.UTF_16BE field.


import java.nio.charset.StandardCharsets;
//from  www .  jav a2  s.c om
public class Main {
  public static void main(String[] args) throws Exception {
    System.out.println(StandardCharsets.UTF_16BE.name());
  }

}




















Home »
  Java Tutorial »
    java.nio.charset »




Charset
CharsetDecoder
CharsetEncoder
StandardCharsets