Integer s=new Integer(9); Integer t=new Integer(9); Long u=new Long(9); (s==t) 这个是错的,只要有new这个关键字,就是开辟空间,用的是引用 Integer s =9;Integer t =9;(s==t) 这个是对的,在 ...
分类:
其他好文 时间:
2020-07-08 13:48:31
阅读次数:
72
测试项目已上传到码云,可以下载:https://gitee.com/yangxioahui/aopdemo.git 具体如下: public interface Calc { Integer add(int num1,int num2); }//目标是对add 方法进行切入 @Component p ...
分类:
其他好文 时间:
2020-07-08 13:07:10
阅读次数:
52
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve ...
分类:
其他好文 时间:
2020-07-08 09:14:32
阅读次数:
54
自己收集的几个比较实用的字符串函数(LeftStr,MidStr,RightStr,Reverse,LastPos) 没什么可说的,自己看啦 //从右边取 function RightStr (Const Str: String; Size: Word): String; begin if Size ...
方法一:滑动窗口 class Solution { public List<Integer> partitionLabels(String s) { List<Integer> res = new ArrayList<>(); int[] arr = new int[128]; for(char c ...
分类:
其他好文 时间:
2020-07-07 18:10:25
阅读次数:
53
群主发普通红包。某群有多名成员,群主给成员发普通红包。普通红包的规则: 1. 群主的一笔金额,从群主余额中扣除,平均分成n等份,让成员领取。 2. 成员领取红包后,保存到成员余额中。 /** * 用户类 */public class User { private String username; p ...
分类:
其他好文 时间:
2020-07-07 18:08:28
阅读次数:
39
一。首先创建一个服务提供者 实体类: package com.dsjg.user.pojo;import lombok.Data;import tk.mybatis.mapper.annotation.KeySql;import javax.persistence.Id;import javax.p ...
分类:
编程语言 时间:
2020-07-07 10:02:13
阅读次数:
68
一、首先定义一个log的日志(TLog.java); package entity; import java.util.Date; public class TLog { private Integer id; private String type; private Integer operato ...
分类:
其他好文 时间:
2020-07-07 00:29:09
阅读次数:
71
import java.util.*; public class Main { static List<String> res; static Stack<Integer> stk; static void dfs(int[] a, int n, int u, String path, int ti ...
分类:
其他好文 时间:
2020-07-06 19:50:26
阅读次数:
88
###题目描述 Bessie the cow, always a fan of shiny objects, has taken up a hobby of mining diamonds in her spare time! She has collected \(N\) diamonds \(( ...
分类:
其他好文 时间:
2020-07-06 19:44:16
阅读次数:
76