将数据金额转为汉语中的数字大写
package com.lisha.test;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;
/**
* @author: lisha
* @ClassName: Number2CNMontrayUnit2
* @Date: 2023/2/14 8:33
*/
public class NumberToCN {
// 汉语中数字大写
private static final String[] CN_UPPER_NUMBER = {
"零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"};
// 汉语中货币单位大写,类似于占位符
private static final String[] CN_UPPER_MONETRAY_UNIT = {
"分", "角", "元", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿", "拾", "佰", "仟", "兆", "拾", "佰", "仟"};
// 特殊字符:整
private static final String CN_FULL =