2017年10月11日

字符串中部分字符替换

摘要: package com.test.interfaces;/* * 请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 */public class Cnblog06 { public static 阅读全文

posted @ 2017-10-11 22:25 jackyu126 阅读(2209) 评论(0) 推荐(0) 编辑

斐波那契数列

摘要: package com.test.interfaces;/* * 大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项。n<=39 */public class Cnblog05 { public static void main(String[] args) { for(i 阅读全文

posted @ 2017-10-11 17:08 jackyu126 阅读(163) 评论(0) 推荐(0) 编辑

导航