当前位置:网站首页>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
边栏推荐
- 724. 寻找数组的中心下标
- (4) Canal multi instance use
- IP时代来临,电竞酒店如何借好游戏的“东风”?
- [matlab] matlab simulates digital bandpass transmission systems - QPSK and OQPSK systems
- [matlab] communication signal modulation general function - low pass filter
- XII Golang others
- [high concurrency, high performance and high availability of massive data MySQL practice-7] - memory data drop disk
- Simulink与Arduino串口通信
- 总线的基本概念
- [interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
猜你喜欢
云原生架构实战案例及优化解决方案
ping端口神器psping
Just do it with your hands 7 - * project construction details 2 - hook configuration
2022 R2 mobile pressure vessel filling retraining question bank and answers
June 2022 summary
How to use postman to realize simple interface Association [add, delete, modify and query]
The data mark is a piece of fat meat, and it is not only China Manfu technology that focuses on this meat
数据标注是一块肥肉,盯上这块肉的不止中国丨曼孚科技
C # character similarity comparison general class
VB. Net GIF (making and disassembling - optimizing code, class library - 5)
随机推荐
Redis realizes ranking function
Simulated small root pile
BUU-Real-[PHP]XXE
BUU-Crypto-[HDCTF2019]basic rsa
TCP状态转换图
Appearance of LabVIEW error dialog box
Enterprise level log analysis system elk (if things backfire, there must be other arrangements)
Just do it with your hands 7 - * project construction details 2 - hook configuration
[matlab] matlab simulation - narrow band Gaussian white noise
Flink1.13 basic SQL syntax (II) join operation
Trie数-字典树
How to use postman to realize simple interface Association [add, delete, modify and query]
Graduation design of small programs -- small programs of food and recipes
June 2022 summary
How to configure static IP for Kali virtual machine
Flask
[matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (cosine roll off forming pulse)
Solar insect killing system based on single chip microcomputer
RSA加密应用常见缺陷的原理与实践
ping端口神器psping