上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 77 下一页
摘要: 【定义】 表示object的集合 generic class:可以用于多种object, 抽象类的具体实现: 【ArrayList】 动态添加,只能加Non-primitive type,要初始化长度。 【compare】记忆方法:BT1 用this,T02 用object comparable:比 阅读全文
posted @ 2018-10-18 22:02 苗妙苗 阅读(113) 评论(0) 推荐(0)
摘要: 通过关键字extends来创建一个类的子类。一个类通过关键字implements声明自己使用一个或者多个接口。 settext是根据数组新建的pets[1]object来的,对其调用抽象方法talk,数量上要输出dog object中的dogcount 阅读全文
posted @ 2018-10-18 20:52 苗妙苗 阅读(125) 评论(0) 推荐(0)
摘要: [抄题]: You are given an array A of strings. Two strings S and T are special-equivalent if after any number of moves, S == T. A move consists of choosin 阅读全文
posted @ 2018-10-18 09:47 苗妙苗 阅读(142) 评论(0) 推荐(0)
摘要: [抄题]: An array is monotonic if it is either monotone increasing or monotone decreasing. An array A is monotone increasing if for all i <= j, A[i] <= A 阅读全文
posted @ 2018-10-18 08:48 苗妙苗 阅读(175) 评论(0) 推荐(0)
摘要: [抄题]: Given a binary tree rooted at root, the depth of each node is the shortest distance to the root. A node is deepest if it has the largest depth p 阅读全文
posted @ 2018-10-18 07:56 苗妙苗 阅读(277) 评论(0) 推荐(0)
摘要: [抄题]: Given a robot cleaner in a room modeled as a grid. Each cell in the grid can be empty or blocked. The robot cleaner with 4 given APIs can move f 阅读全文
posted @ 2018-10-17 08:09 苗妙苗 阅读(826) 评论(0) 推荐(0)
摘要: 【AWT-SWING-JAVA FX】 多平台、多应用的现有通用类 【inner class】 (member class)inside another class, outside any method. can call outer class's data or method. 使用单方法的接 阅读全文
posted @ 2018-10-10 07:15 苗妙苗 阅读(187) 评论(0) 推荐(0)
摘要: super.bark(); 不要第一个括号 Write a concrete meow( ) method 抽象类实例化后要加一个实例化的方法。 抽象类里可以没有抽象方法。 What does it mean to say that inheritance hierarchies are coupl 阅读全文
posted @ 2018-10-10 02:00 苗妙苗 阅读(281) 评论(0) 推荐(0)
摘要: 【知识】 主类中用constructor建对象,子类中用关键字。 【过程分析】 开始觉得自己能行,一次告一点地写到了7:00,后来一run发现写完的全是错,而且还有半个函数没写,UX小姐姐帮我写完的。不然那要跪,真的很危险。 【原因】 理解题意都要好长的时间,但是还是要基本理解的。一些知识点第一次学 阅读全文
posted @ 2018-10-07 04:56 苗妙苗 阅读(157) 评论(0) 推荐(0)
摘要: hardcode版本 估计只能过一个吧 import java.util.*; public class NextServer { Map<Integer, Integer> serverCount = new HashMap<Integer, Integer>(); //serverNum use 阅读全文
posted @ 2018-10-05 22:15 苗妙苗 阅读(165) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 77 下一页