Checking condition for Anagram
Arrays . sort ( tempArray1 ) ; Arrays . sort ( tempArray2 ) ; String copy_S1 = new String ( tempArray1 ) ; String copy_S2 = new String ( tempArray2 ) ; if ( ! copy_S1 . equals ( copy_S2 ) ) { return false ; } for ( int i = 1 ; i < n ; i ++ ) {