Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Comparing arrays not working correctly?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
Comparing arrays not working correctly?
2 Answer(s)      11 months ago
Posted in : Java Beginners


Comparing arrays not working correctly?


Advertisement
View Answers

December 23, 2013 at 5:38 PM


Here is how you can Compare two char array in java



December 23, 2013 at 5:40 PM


You can try:

Arrays.equals(); // <---- One Dimensional Arrays

or 
ArrayUtils.isEquals(); // <---- Multi Dimensional Arrays

The forgoing Array methods can be used to compare the contents of the two arrays.



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com