34

2017年7月7日

摘要: package com.test; /** * * @author Administrator *我的发现:调用这个的时候,不能直接实例化了;需要=null;然后get; 这样安全些; *然后仔细找了下单例模式的解释,发现是这样的;单例模式要线程安全,有单独且唯一的一个例子; *所以重新了构造方法, 阅读全文
posted @ 2017-07-07 13:25 小确幸~ 阅读(215) 评论(0) 推荐(0) 编辑

2017年7月6日

摘要: package com.test; import java.util.Scanner; public class test666 { /** * @param args * 【程序6】 题目:输入两个正整数m和n,求其最大公约数和最小公倍数。 * 1.程序分析:利用辗除法。 * 注:如果数a能被数b 阅读全文
posted @ 2017-07-06 17:44 小确幸~ 阅读(545) 评论(0) 推荐(0) 编辑
摘要: package com.test; import java.util.Scanner; public class test555 { /** * * @param args * * 【程序5】 题目:利用条件运算符的嵌套来完成此题:学习成绩> =90分的同学用A表示, * 60-89分之间的用B表示 阅读全文
posted @ 2017-07-06 15:52 小确幸~ 阅读(1524) 评论(0) 推荐(0) 编辑

2017年7月5日

摘要: package com.test; /* */public class Mathtest { public static void main(String[] args) { /* 下面是三角运算 */ //将弧度转换角度 System.out.println("Math.toDegrees(1.5 阅读全文
posted @ 2017-07-05 13:17 小确幸~ 阅读(730) 评论(0) 推荐(0) 编辑

2017年7月4日

摘要: package com.test; import java.util.Scanner; import org.apache.poi.hssf.record.formula.functions.Int; import antlr.debug.NewLineEvent; public class tes 阅读全文
posted @ 2017-07-04 16:52 小确幸~ 阅读(262) 评论(0) 推荐(0) 编辑
摘要: package com.test;import java.math.*;public class test333 { /** * @param args * 【程序3】 题目:打印出所有的 "水仙花数 ",所谓 "水仙花数 "是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个 "水仙花 阅读全文
posted @ 2017-07-04 16:49 小确幸~ 阅读(328) 评论(0) 推荐(0) 编辑
摘要: package com.test; import java.math.*;import java.util.Scanner; public class test222 { /** * @param args * 【程序2】 题目:判断101-200之间有多少个素数,并输出所有素数。 * * 1.程序 阅读全文
posted @ 2017-07-04 16:48 小确幸~ 阅读(291) 评论(0) 推荐(0) 编辑
摘要: package com.test; import java.util.Scanner; public class test111 { /** * @param args * 【程序1】 题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第四个月后每个月又生一对兔子,假如兔子 阅读全文
posted @ 2017-07-04 16:42 小确幸~ 阅读(149) 评论(0) 推荐(0) 编辑

2017年6月6日

摘要: 构建微服务:Spring boot 入门篇 什么是spring boot Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。用我的话来理解,就是sprin 阅读全文
posted @ 2017-06-06 09:18 小确幸~ 阅读(166) 评论(0) 推荐(0) 编辑

2017年2月15日

摘要: java基本数据类型和三大特性 阅读全文
posted @ 2017-02-15 18:10 小确幸~ 阅读(150) 评论(0) 推荐(0) 编辑

导航