package com.palatform.yijia;

import org.apache.commons.codec.digest.DigestUtils;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.text.Bidi;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

public class test {

    public static void main(String[] args) {

//        BigDecimal discountAmt_b = new BigDecimal(5.79);
//        BigDecimal receivableAmt_b = new BigDecimal(100);
//        BigDecimal oilLiters =null;
//        oilLiters = receivableAmt_b.divide(discountAmt_b, 2, BigDecimal.ROUND_HALF_UP);
//        System.out.println(oilLiters);
//        String s = oilLiters.toString();
//        String substring = s.substring(s.indexOf(".") + 1);
//        System.out.println(substring);
//        if(!substring.equals("00")){
//            oilLiters = receivableAmt_b.divide(discountAmt_b, 2, BigDecimal.ROUND_UP);
//        }
//        System.out.println(oilLiters);

//        String ss = "20210508171257";
//        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//        //sdf.
//        System.out.println(sdf.format(ss));

        String  sss = null;
        String ddd  =null;

        List<String> aa  = new ArrayList<>();
//        aa.add(sss);
//        aa.add(ddd);
        System.out.println(aa);




    }




    public static boolean isEqual(byte[] digesta, byte[] digestb) {
        if (digesta.length != digestb.length) {
            return false;
        }

        int result = 0;
        // time-constant comparison
        for (int i = 0; i < digesta.length; i++) {
            result |= digesta[i] ^ digestb[i];
            System.out.println(digesta[i] ^ digestb[i]);
            //System.out.println(result);
        }
        return result == 0;
    }



}
