Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static boolean compareString(byte[] barray, String str, int size) {
        for (int i = 0; i < size; ++i) {
            int m = barray[i];
            int n = str.charAt(i);
            if (m != n)
                return false;
        }
        return true;
    }
}