
Java
文章平均质量分 53
flybirdFb
这个作者很懒,什么都没留下…
展开
-
JAVA中this与super两个关键字的用法
讨论一下JAVA中this与super两个关键字的用法。 在Java中this通常指当前对象,super通常指父对象,如果想引用当前对象的某种东西,比如当前对象的成员属性或者方法,则可使用this来实现这个目的。原创 2016-02-28 15:21:06 · 449 阅读 · 0 评论 -
Java反射机制的几点用法
什么是Java反射机制?Java的反射机制是反应Java作为动态(准动态)语言的关键性质。这个机制允许程序在运行时加载、使用编译期间完全未知的classes。具体功能包括: 1、在运行时判断任意一个对象所属的类。 2、在运行时构造任意一个类的对象。 3、在运行时判断任意一个类所具有的成员变量与方法。 4、在运行时调用任意一个对象的方法。 5、在运行时创建新类对象。在使用Java的反射功能时原创 2016-02-28 22:47:00 · 377 阅读 · 0 评论 -
LeetCode第1题
LeetCode第1题:Two SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example原创 2016-07-02 22:49:25 · 313 阅读 · 0 评论 -
LeetCode第2题
2. Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and原创 2016-07-03 12:29:23 · 349 阅读 · 0 评论 -
LeetCode第3题
3. Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters.Examples:Given “abcabcbb”, the answer is “abc”, which the length原创 2016-07-03 23:55:57 · 1195 阅读 · 0 评论