上一页 1 2 3 4 5 6 7 8 9 ··· 60 下一页
摘要: Calendar类,专门用于转换特定时刻和日历字段之间的日期和时间。 使用Calendar 获取当前日期和时间非常简单: Calendar calendar = Calendar.getInstance(); // gets current instance of the calendar 与dat 阅读全文
posted @ 2019-09-02 19:07 水至清明 阅读(666) 评论(0) 推荐(0) 编辑
摘要: Java 8提供了一个全新的API,用以替换java.util.Date和java.util.Calendar。Date / Time API提供了多个类,帮助我们来完成工作,包括: LocalDateLocalTimeLocalDateTimeZonedDateTime—————————————— 阅读全文
posted @ 2019-09-02 19:07 水至清明 阅读(230) 评论(0) 推荐(0) 编辑
摘要: LocalDate只是一个日期,没有时间。 这意味着我们只能获得当前日期,但没有一天的具体时间。 LocalDate date = LocalDate.now(); // gets the current date 我们可以format它 DateTimeFormatter formatter = 阅读全文
posted @ 2019-09-02 19:07 水至清明 阅读(306) 评论(0) 推荐(0) 编辑
摘要: LocalTime与LocalDate相反,它只代表一个时间,没有日期。 这意味着我们只能获得当天的当前时间,而不是实际日期: LocalTime time = LocalTime.now(); // gets the current time 可以按如下方式format DateTimeForma 阅读全文
posted @ 2019-09-02 19:07 水至清明 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 最后一个是LocalDateTime,也是Java中最常用的Date / Time类,代表前两个累的组合 - 即日期和时间的值: LocalDateTime dateTime = LocalDateTime.now(); // gets the current date and time forma 阅读全文
posted @ 2019-09-02 19:07 水至清明 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 概念:将类的各个组成部分封装为其他对象,这就是反射机制Class对象功能: 获取功能: 1,获取成员变量 Field[ ] getFields(http://www.my516.com):获取所有public修饰的 Field getField(String name):获取指定名称的public修 阅读全文
posted @ 2019-08-30 17:18 水至清明 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Method[ ] getMethods()* Method getMethod(String name,类<?>…parameterTypes) * Method[ ] getDeclaredMethods() * Method getDeclaredMethod(String name,类<?> 阅读全文
posted @ 2019-08-30 17:18 水至清明 阅读(97) 评论(0) 推荐(0) 编辑
摘要: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # Build all java files in the java subdirectory LOCAL_SRC_FILES := $(call all-subdir-java-files) # 阅读全文
posted @ 2019-08-30 17:18 水至清明 阅读(167) 评论(0) 推荐(0) 编辑
摘要: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # List of static libraries to include in the package LOCAL_STATIC_JAVA_LIBRARIES := static-library 阅读全文
posted @ 2019-08-30 17:18 水至清明 阅读(349) 评论(0) 推荐(0) 编辑
摘要: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS)(http://www.amjmh.com) # Build all java files in the java subdirectory LOCAL_SRC_FILES := $(call all 阅读全文
posted @ 2019-08-30 17:18 水至清明 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 60 下一页