<gouthampradhan>array_ThirdMaximumNumber_1.java
public int thirdMax(int[] nums) {
    long[] max = {Long.MIN_VALUE, Long.MIN_VALUE, Long.MIN_VALUE};
    int count = 0;
    for (int num : nums) {
      for (int j = 0; j < 3; j++) {
        if (max[j] > num) continue;
        else if (max[j] == num) break;
        int k = j;
        long temp1, temp2;
        temp1 = num;
        count++;
        while (k < 3) {
          temp2 = max[k];
          max[k] = temp1;
          temp1 = temp2;
          k++;
        }
        break;
      }
    }
    System.out.println(Integer.MIN_VALUE);
    return (count >= 3) ? (int) max[2] : (int) max[0];
  }
public int sample_funcname ( int [ ] var_0 ) {
  long [ ] var_3 = {
    Long . MIN_VALUE , Long . MIN_VALUE , Long . MIN_VALUE };
    int var_5 = 0 ;
    for ( int var_6 : var_0 ) {
      for ( int var_7 = 0 ;
      var_7 < 3 ;
      var_7 ++ ) {
        if ( var_3 [ var_7 ] > var_6 ) continue ;
        else if ( var_3 [ var_7 ] == var_6 ) break ;
        int var_9 = var_7 ;
        long var_10 , var_11 ;
        var_10 = var_6 ;
        var_5 ++ ;
        while ( var_9 < 3 ) {
          var_11 = var_3 [ var_9 ] ;
          var_3 [ var_9 ] = var_10 ;
          var_10 = var_11 ;
          var_9 ++ ;
        }
        break ;
      }
    }
    System . out . println ( Integer . MIN_VALUE ) ;
    return ( var_5 >= 3 ) ? ( int ) var_3 [ 2 ] : ( int ) var_3 [ 0 ] ;
  }
  