Java线程的生命周期
import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar cal = Calendar.getInstance(); int day = cal.get(Calendar.DATE); int mon...
Array转List String[] array = {"string1", "string2", "string3"}; List<String> list = Arrays.asList(array); //Arrays.asList产生一个Arrays内置的类,其中数组用final表示 // list.add("string4"); 所以不能往其中添加元素 for(S...
public static int getMonthDiff(Date d1, Date d2) { Calendar c1 = Calendar.getInstance(); Calendar c2 = Calendar.getInstance(); c1.setTime(d1); c2.setTime(d2); int year1 = c1.get(Calendar.YEAR)...
获取客户端的IP地址
SQl格式化工具
A new version of content is available.