Here you can find the source of equals(byte[] first, byte[] second)
Parameter | Description |
---|---|
first | The first byte array. |
second | The second byte array. |
static public boolean equals(byte[] first, byte[] second)
//package com.java2s; /************************************************************************ * Copyright (c) Crater Dog Technologies(TM). All Rights Reserved. * ************************************************************************ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * * * This code is free software; you can redistribute it and/or modify it * * under the terms of The MIT License (MIT), as published by the Open * * Source Initiative. (See http://opensource.org/licenses/MIT) * ************************************************************************/ import java.util.Arrays; public class Main { /**/*from w ww . j a v a 2 s . co m*/ * This function compares two byte arrays to see if they are equal. * * @param first The first byte array. * @param second The second byte array. * @return Whether or not the two byte arrays are equal. */ static public boolean equals(byte[] first, byte[] second) { return Arrays.equals(first, second); } }