Related Examples
  1. Array class toString(boolean[] a)method example
  2. Array class toString(short[] a)method example
  3. Array class toString(Object[] a) method example
  4. Array class toString(long[] a)method example
  5. Array class toString(int[] a)method example
  6. Array class toString(float[] a) method example
  7. Array class toString(double[] a) method example
  8. Array class toString(char[] a) method example
  9. Array class toString(byte[] a) method example
  10. Array class sort(byte[] a) method example
  11. Array class sort(short[] a, int fromIndex, int toIndex) method example
  12. Array class sort(short[] a)method example
  13. Array class sort(Object[] a, int fromIndex, int toIndex) method example
  14. Array class sort(Object[] a) method example
  15. Array class sort(long[] a, int fromIndex, int toIndex) method example
  16. Array class sort(long[] a) method example
  17. Array class sort(int[] a, int fromIndex, int toIndex)method example
  18. Array class sort(int[] a)method example
  19. Array class sort(float[] a)method example
  20. Array class sort(double[] a, int fromIndex, int toIndex) method example
  21. Array class sort(double[] a) method example
  22. Java Array class sort(float[] a, int fromIndex, int toIndex) example
  23. Java Array class sort(float[] a) example
  24. Java Array class sort(double[] a) example
  25. Java Array class sort(double[] a, int fromIndex, int toIndex) example
  26. Java Array class sort(char[] a, int fromIndex, int toIndex) example
  27. Java Array class sort(char[] a) example
  28. Java Array class sort(byte[] a, int fromIndex, int toIndex) example
  29. Java Array class hashCode(boolean[] a) example
  30. Java Array class hashCode(short[] a) example
  31. Java Array class hashCode(Object[] a) example
  32. Java Array class hashCode(byte[] a) example
  33. Java Array class fill(boolean[] a, boolean val) example
  34. Java Array class fill(short[] a, short val) example
  35. Java Array class fill(short[] a, int fromIndex, int toIndex, short val) example
  36. Java Array class fill(Object[] a, Object val) example
  37. Java Array class fill(Object[] a, int fromIndex, int toIndex, Object val) example
  38. Java Array class fill(long[] a, long val) example
  39. Java Array class fill(long[] a, int fromIndex, int toIndex, long val) example code
  40. Java Array class fill(int[] a, int fromIndex, int toIndex, int val) example
  41. Java Array class fill(int[] a, int val) example
  42. Java Array class fill(float[] a, int fromIndex, int toIndex, float val) example
  43. Java Array class fill(float[] a, float val) example
  44. Java Array class fill(double[] a, int fromIndex, int toIndex, double val) example code
  45. Java Array class fill(double[] a, double val) example
  46. Java Array class fill(char[] a, int fromIndex, int toIndex, char val) example
  47. Java Array class fill(char[] a, char val) example
  48. Java Array class fill(byte[] a, int fromIndex, int toIndex, byte val) example
  49. Java Array class fill(byte[] a, byte val) example
  50. Java Array class fill(boolean[] a, int fromIndex, int toIndex, boolean val) example
  51. Java Array class equals(short[] a, short[] a2) example
  52. Java Array class equals(Object[] a, Object[] a2) example
  53. Java Array class equals(long[] a, long[] a2) example
  54. Java Array class equals(int[] a, int[] a2) example
  55. Java Array class equals(float[] a, float[] a2) example
  56. Java Array class equals(double[] a, double[] a2) example
  57. Java Array class equals(char[] a, char[] a2) example
  58. Java Array class equals(byte[] a, byte[] a2) example
  59. Java Array class equals(boolean[] a, boolean[] a2) example
  60. Java Array class deepToString(Object[] a) example
  61. java Array class deepHashCode(Object[] a) example
  62. Java Array class deepEquals(Object[] a1, Object[] a2) example
  63. Java Arrayclass copyOfRange(boolean[]original, int from, int to) example
  64. Java Array class copyOfRange(T[] original, int from, int to) example
  65. Java Array class copyOfRange(short[] original, int from, int to) example
  66. Java Array class copyOfRange(long[] original, int from, int to) example
  67. Java Array class copyOfRange(int[] original, int from, int to) example
  68. Java Array class copyOfRange(float[] original, int from, int to) example
  69. Java Array class copyOfRange(double[]original, int from, int to) example
  70. Java Array class copyOfRange(char[] original, int from, int to) example
  71. Java Array class copyOfRange(byte[] original, int from, int to) example
  72. Java Array class copyOf(boolean[] original, int newLength) example
  73. Java Array class copyOf(T[] original, int newLength) example
  74. Java Array class copyOf(short[] original, int newLength) example
  75. Java Array class copyOf(long[] original, int newLength) example
  76. Java Array class copyOf(int[] original, int newLength) example
  77. Java Array class copyOf(float[] original, int newLength) example
  78. Java Array class copyOf(double[] original, int newLength) example
  79. Java Array class copyOf(char[] original, int newLength) example
  80. Java Array class copyOf(byte[] original, int newLength) example
  81. Java Array class binarySearch(short[] a, short key) example
  82. Java Array class binarySearch(Object[] a, Object key) example
  83. Java Array class binarySearch(long[] a, long key) example
  84. Java Array class binarySearch(long[] a, int fromIndex, int toIndex, long key) example
  85. Java Array class binarySearch(int[] a, int fromIndex, int toIndex, int key) example
  86. Java Array class binarySearch(int[] a, int key) method example code
  87. Java Array class binarySearch(float[] a, float key) example
  88. Java Array class binarySearch(double[] a, int fromIndex, int toIndex, double key) example
  89. Java Array class binarySearch(double[] a, double key) example
  90. Java Array class binarySearch(char[] a, char key) example
  91. Java Array class binarySearch(byte[] a, byte key) example
  92. Java Array class asList(T... a) example
  93. Java Class Arrays, Java Arrays Methods, Java Arrays Functions,Arrays Examples Java

View All Examples
 

Java Array class equals(char[] a, char[] a2) example

Array class equals(char[] a, char[] a2) method example


Array class equals(char[] a, char[] a2)method example. This example shows you how to use equals(char[] a, char[] a2)method.This method Returns true if the two specified arrays of chars are equal to one another.

Here is the code:-
/**
 * @Program that Returns true if the two specified arrays of chars are equal
 * to one another.
 * equal to one another.
 * equals3Array.java 
 * Author:-RoseIndia Team
 * Date:-15-May-2008
 */
import java.util.*;
public class equals3Array {
    public static void main(String[] args) {
//creating an char array
char o[]={'a','b','c','d'};
//char o[]={'a','b','c','d','e'};
char o1[]={'a','b','c','d'};
//Returns true if both of array declared are equal
boolean b=Arrays.equals(o, o1);
System.out.println("Two specified arrays of Char are equal:-"+b);
    }

}

Output of the program:-
Two specified arrays of Char are equal:-true

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US