逍遥骑士

天行健,君子以自强不息

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年10月16日

摘要: Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz".For numbers which are multiples of both three and five print "FizzBuzz".Additionally, instead of printing &quo 阅读全文
posted @ 2013-10-16 23:26 逍遥骑士 阅读(501) 评论(0) 推荐(0) 编辑

摘要: 在jstl中,如果返回的字符串中含有换行符(\n),浏览器会将它渲染为空格(" "),但jsp中显然无法使用空格将其替换或分割, 使用: ${fn:split(entityBody.value.remark,'\n') } eclipse报错, 而使用: ${fn:split(entityBody.value.remark,'\\n') } 控制台报jsp错。猜测jstl不能直接书写java当中的转义字符。 google之后发现,先绑定变量到request中,然后从其中取值,可以解决问题 //then${fn:split(entityBody 阅读全文
posted @ 2013-10-16 17:11 逍遥骑士 阅读(1624) 评论(0) 推荐(0) 编辑

摘要: Given a regular expression with characters a-z, ' * ', ' . 'the task was to find if that string could match another string with characters from: a-zwhere ' * ' can delete the character before it, and ' . ' could match whatever character. ' * ' always appear af 阅读全文
posted @ 2013-10-16 00:23 逍遥骑士 阅读(314) 评论(0) 推荐(0) 编辑