/*<java疯狂讲义>浮点数转换为人名币读法字符串这个用例,感觉没有考虑零的情况*/ import java.util.Arrays; public class Num2Rmb { private String[] hanArr={"零","壹","贰","叁","肆","伍","陆","柒","捌","…
把字符串数组转换为16进制字符串 import java.security.MessageDigest; public class StringUtil { public StringUtil() { super(); } public static String str; public static final String EMPTY_STRING = ""; private final static String[] hexDigits = { "0", &q…
import java.lang.String; import java.util.StringTokenizer; public class StringGetWord{ /* 编程提取字符串"Java is a programming language"中的各个单词,并打印输出. */ public static void main(String[] args){ String str="Java is a programming language"; Stri…