摘要:
斐波那契数列: public int Fibonacci(int n) { if(n <= 1){ return n; } int dp1 = 0; int dp2 = 1; int res = 0; //最后的返回值 for(int i = 2;i <= n;i ++){ res = dp1 + 阅读全文
posted @ 2021-09-15 23:00
现在开始努力
阅读(82)
评论(0)
推荐(0)
摘要:
IOC(控制反转) 将创建对象的权利由程序员变成用户 eg: 非IOC public interface UserDao { void getUser(); } public class UserDaoImpl implements UserDao { public void getUser(){ 阅读全文
posted @ 2021-09-15 22:41
现在开始努力
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号