c2c-translator/data/geeks_for_geeks_dataset/java/MIDDLE_OF_THREE_USING_MINIMUM_COMPARISONS.java
<filename>c2c-translator/data/geeks_for_geeks_dataset/java/MIDDLE_OF_THREE_USING_MINIMUM_COMPARISONS.java// Copyright (c) 2019-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the license found in the
// LICENSE file in the root directory of this source tree.
//

import java.util. *;
import java.util.stream.*;
import java.lang.*;
import javafx.util.Pair;
public class MIDDLE_OF_THREE_USING_MINIMUM_COMPARISONS{
public static int f_gold ( int a , int b , int c ) {
  if ( ( a < b && b < c ) || ( c < b && b < a ) ) return b ;
  else if ( ( b < a && a < c ) || ( c < a && a < b ) ) return a ;
  else return c ;
}


//TOFILL

public static void main(String args[]) {
    int n_success = 0;
    List<Integer> param0 = new ArrayList<>();
    param0.add(56);
    param0.add(56);
    param0.add(36);
    param0.add(71);
    param0.add(3);
    param0.add(84);
    param0.add(30);
    param0.add(82);
    param0.add(90);
    param0.add(38);
    List<Integer> param1 = new ArrayList<>();
    param1.add(5);
    param1.add(60);
    param1.add(56);
    param1.add(54);
    param1.add(70);
    param1.add(57);
    param1.add(80);
    param1.add(54);
    param1.add(70);
    param1.add(4);
    List<Integer> param2 = new ArrayList<>();
    param2.add(82);
    param2.add(17);
    param2.add(51);
    param2.add(6);
    param2.add(81);
    param2.add(47);
    param2.add(85);
    param2.add(32);
    param2.add(55);
    param2.add(5);
    for(int i = 0; i < param0.size(); ++i)
    {
        if(f_filled(param0.get(i),param1.get(i),param2.get(i)) == f_gold(param0.get(i),param1.get(i),param2.get(i)))
        {
            n_success+=1;
        }
    }
    System.out.println("#Results:" + n_success + ", " + param0.size());
}
}