<awangdev>293. Flip Game_3.java
public static void search(char target, char replace, char[] arr, List<String> rst) {
    	int p1 = 0;
    	int p2 = 1;
    	while (p2 <= arr.length - 1) {
    		if (arr[p1] == target && arr[p2] == target) {
    			arr[p1] = replace;
    			arr[p2] = replace;
    			rst.add(new String(arr));
    			arr[p1] = target;
    			arr[p2] = target;
    		}
    		p1++;
    		p2++;
    	}
    }
public static void var_0 ( char var_1 , char var_2 , char [ ] var_3 , List < String > var_6 ) {
  int var_8 = 0 ;
  int var_10 = 1 ;
  while ( var_10 <= var_3 . length - 1 ) {
    if ( var_3 [ var_8 ] == var_1 && var_3 [ var_10 ] == var_1 ) {
      var_3 [ var_8 ] = var_2 ;
      var_3 [ var_10 ] = var_2 ;
      var_6 . add ( new String ( var_3 ) ) ;
      var_3 [ var_8 ] = var_1 ;
      var_3 [ var_10 ] = var_1 ;
    }
    var_8 ++ ;
    var_10 ++ ;
  }
}
