Mega Code Archive

 
Categories / Java / Collections Data Structure
 

Compare two char type arrays

import java.util.Arrays; public class Main {   public static void main(String[] argv) throws Exception {     boolean b = Arrays.equals(new char[] { 'a' }, new char[] { 'a' }); // true   } }