Java复习Day1
Java复习Day1单例设计模式一、构造超级英雄类SuperHero,该类有String型常量属性name,其值固定为“谭雅”、“伊万”。要求:a. 在程序运行期间,至多只能造出一个对象,要么是谭雅,要么是伊万。b. 如何实现:在程序运行期间,至多只能造出两个对象,其中一个是谭雅,另一个是伊万。a 12345678910111213141516171819202122232425262728293031package SchoolJob.ExampleOnly1.OneExample;public class Superhero { private static final String name1="谭雅"; private static final String name2="伊万"; private Superhero(){ }//1.构造器私有化 public static Superhero a=new...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
人脉宝
人脉宝ConnectSystem编写细节编写语言:c语言数据结构:利用链表来存储数据,利用KMP算法实现模糊查找,利用冒泡排序实现通话次数排序 更新历史 这是第一次实现的功能 以下是几处设计时所考虑的细节: 判断姓名电话号码输入是否有效 为查找联系人,修改联系人,排序联系人设置二级页面 链表为空时实现显示联系人,删除联系人,查找联系人,排序联系人,修改联系人中任一功能系统直接显示没有联系人 这是第二次更新后实现的功能...