Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.UnsupportedEncodingException;

public class Main {
    public static void main(String[] argv) {
        byte[] bytes = new byte[] { 65, 66, 67, 68 };
        try {
            System.out.println(new String(bytes, "ASCII"));
        } catch (UnsupportedEncodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}