Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.UnsupportedEncodingException;

public class Main {
    public static String func_72661_a(byte[] p_72661_0_, int p_72661_1_, int p_72661_2_) {
        int var3 = p_72661_2_ - 1;

        int var4;
        for (var4 = p_72661_1_ > var3 ? var3 : p_72661_1_; 0 != p_72661_0_[var4] && var4 < var3; ++var4) {
            ;
        }

        try {
            return new String(p_72661_0_, p_72661_1_, var4 - p_72661_1_, "UTF-8");
        } catch (UnsupportedEncodingException var6) {
            var6.printStackTrace();
            return null;
        }
    }
}