![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java技术
qq_20062767
编程有灵魂,当你沉迷其中的时候,有一种行走于代码行间的感觉。
展开
-
Java中一个比String类的split方法好用的分隔字符串类StringTokenizer
在java中我们如果要分隔字符串的时候,一般都是使用split(String regex)方法,这个方法按照一个正则表达式来分隔,而我们很多时候都不熟悉正则表达式,即使我们可以使用java.util.regex.Pattern包下的静态方法quote(String s)来生成一个正则表达式,但是只能按照一个分隔符来分隔,如果我们要以多个分隔符来分隔的时候,这个方法就不用使,也不方便,此时,我们可以原创 2016-01-10 12:54:35 · 1113 阅读 · 0 评论 -
编程道场之fizz buzz重构
题目:Write a program that prints the numbers from 1 to 100.But for multiples of three print "Fizz" instead of thenumber and for the multiples of five print "Buzz". Fornumbers which are multiples原创 2016-04-10 14:22:30 · 606 阅读 · 0 评论