Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.nio.charset.Charset;

public class Main {
    public static void main(String[] args) throws Exception {
        String pound = "\u00a3";
        byte[] bytes = pound.getBytes(Charset.forName("UTF-8"));
        for (byte b : bytes) {
            System.out.println(b & 0xff); // 194, 163
        }
    }
}