码迷,mamicode.com
首页 >  
搜索关键字:implements    ( 2581个结果
【DataStructure】The description and usage of Stack
A stack is collection that implements the last-in-first-out protocal.This means that the only access object in the collections is the last one thatwas inserted.The fundamental  operations of a stack a...
分类:其他好文   时间:2014-07-29 14:53:28    阅读次数:218
用mapreduce实现将mysql数据导出到HDFS上
因为业务需要,需要将一批mysql数据导入到HBASE,现在先将数据从Mysql导出到HDFS。版本:hadoop CDH4.5,Hbase-0.946 1、实体类 YqBean 是我的实体类,请根据自己需要修改,实体类需要 implements Writable, DBWritable。 ...
分类:数据库   时间:2014-07-29 11:50:56    阅读次数:292
IO流中ObjectOutputStream和ObjectInputStream的使用
package ObjectIntOutputStreamDemo; import java.io.Serializable;//注意每个类都要有这个接口 public class Student implements Serializable { private int id; public Student(int id, String name) { super(); this....
分类:其他好文   时间:2014-07-28 15:56:53    阅读次数:246
java中并不是任意多个接口都可以实现多实现
interface A{ public abstract void show();}interface B{ public abstract int show();}public class Test implements A, B{ public void show(){ ...
分类:编程语言   时间:2014-07-28 14:46:53    阅读次数:242
java中泛型上限,下限应用
import java.util.*;class Person implements Comparable{ String name; int age; Person(){ name = ""; age = 0; } Person(String name, in...
分类:编程语言   时间:2014-07-28 14:38:03    阅读次数:284
java中Comparable实现对象的比较
/*class A implements Comaprable{}那么 A x = new A(); 类关系图Object o = A; ObjectComparable c = A;...
分类:编程语言   时间:2014-07-27 23:29:49    阅读次数:225
计算器
import java.awt.*;import java.awt.event.*;import javax.swing.*; public class jh extends JFrame implements ActionListener{ private JPanel jPanel1,jPa.....
分类:其他好文   时间:2014-07-27 23:21:09    阅读次数:341
易学设计模式看书笔记(6) - 创建者模式
四、创建者模式 1.摩托车组装系统 觉得这些例子挺适合入门的,容易理解, 看了之后大概是个什么样子的就有了印象。 摩托车 = 车架 + 车轮 + 轮胎 + 发动机。 首先设计摩托车类以及各零件类: 摩托车类: public interface Motorcycle { void build(); } public class Motorcycle1 implements M...
分类:其他好文   时间:2014-07-27 11:20:12    阅读次数:240
代理模式用来初始化的延迟下载
package 设计模式;//代理模式实现延迟加载来减小启动时间//数据库查询接口interface IDBQery{public String request();}class DBQuery implements IDBQery{ //创建一个DBQery非常耗时的,这里面我可以在需要DB...
分类:其他好文   时间:2014-07-27 09:52:32    阅读次数:187
经典排序算法(Java实现)
以下程序均将数据封装于DataWrap数据包装类中,如下所示: 1 //数据包装类 2 class DataWrap implements Comparable 3 { 4 int data; 5 String flag; 6 pu...
分类:编程语言   时间:2014-07-26 01:26:36    阅读次数:426
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!