当前位置:网站首页>Use of hutool Pinyin tool
Use of hutool Pinyin tool
2022-07-04 05:29:00 【Rookie pig man YY】
Hutool Use of Pinyin tools
Import dependence
1. Import dependence
Because I just want to test , So what I import is jar package , If it is maven The project enters the pom.xml Just import the corresponding dependency in the file ( stay maven In the official website )
Import is required here 2 Dependencies :
1.hutool-all-5.4.1.jar package
2.pinyin4j-2.5.0.jar package
Use
1. Get Chinese initials
// Get the initial
String letter= PinyinUtil.getFirstLetter(" Hello ","");
System.out.println(" Hello initials :"+letter); // nh
边栏推荐
- Letter meaning and parameter abbreviation of optical module Daquan
- The data mark is a piece of fat meat, and it is not only China Manfu technology that focuses on this meat
- [matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (class I part response waveform)
- Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
- SQL injection - injection based on MSSQL (SQL Server)
- LC周赛300
- 小程序毕业设计---美食、菜谱小程序
- Zhongke Panyun - module a infrastructure setting and safety reinforcement scoring standard
- BUU-Real-[PHP]XXE
- Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
猜你喜欢
C language simple student management system (including source code)
RSA加密应用常见缺陷的原理与实践
transformer坑了多少算力
Void convolution, deformable convolution, deformable ROI pooling
VB.net GIF(制作、拆解——优化代码,类库——5)
2022年A特种设备相关管理(电梯)考试题模拟考试平台操作
2022危险化学品经营单位安全管理人员上岗证题库及答案
Flutter ‘/usr/lib/libswiftCore. dylib‘ (no such file)
The data mark is a piece of fat meat, and it is not only China Manfu technology that focuses on this meat
数据标注是一块肥肉,盯上这块肉的不止中国丨曼孚科技
随机推荐
[matlab] matlab simulates digital bandpass transmission system ask, PSK, FSK system
flink1.13 sql基础语法(一)DDL、DML
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
[matlab] communication signal modulation general function interpolation function
[matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (class I part response waveform)
LM小型可编程控制器软件(基于CoDeSys)笔记二十二:错误4268/4052
Nodejs learning document
模拟小根堆
LM小型可编程控制器软件(基于CoDeSys)笔记二十一:错误3703
Flask
Graduation design of small programs -- small programs of food and recipes
VB.net 简单的处理图片,黑白(类库——7)
2022 question bank and answers for safety management personnel of hazardous chemical business units
Exercise bubble sort
Introduction To AMBA 简单理解
[matlab] matlab simulation - low pass Gaussian white noise
SQL injection - injection based on MSSQL (SQL Server)
Zhongke panyun-2022 Guangdong Trojan horse information acquisition and analysis
Risc-v-qemu-virt in FreeRTOS_ Lock mechanism analysis of GCC
Supplement the JS of a video website to decrypt the video