In Java array replication, reverse lookup,
package Array;
/*
* an array of replication, reverse, find
*/
Public class ArrayTest1 {
Public static void main (String [] args) {
Arr=new String String [] [] {" jj ", "dd", "gg", "ee" and "yy", "ww"};
//array copy (different from an array variable assignment: arr1=arr)
String [] arr1=new String (arr. Length),
for(int i=0; I & lt; Arr1. Length; I++) {
[I] arr1=arr [I];
System. The out. Print (arr [I] + "\ t");
}
System. The out. Println (" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ");
//the reversal of the array
//a new array (define)
String [] arr2=new String (arr. Length),
For (int j=arr2 length - 1. J & gt;=0; J -) {
Arr2=arr [j] [j];
System. The out. Print (arr2 [j] + "\ t");
}
System. The out. Println (" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ");
//find
//linear search
String chazhao="yy";
for(int i=0; I & lt; Arr. Length; I++) {
If (chazhao==arr [I]) {
System. The out. Println (" with the element position is: "+ I);
}
}
}
}