`
javazy
  • 浏览: 14667 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
  Mysql常用命令   show databases; 显示数据库   create database name; 创建数据库   use databasename; 选择数据库   drop database name 直接删除数据库,不提醒   show tables; 显示表   describe tablename; 显示具体的表结构   sel ...
对象数组的排序需要类实现Compareable接口。 Compareable接口中的compareTo方法返回一个整型数值,用来表示两个对象的大小或相等状态。 public class Person implements Comparable<Person> { private String id; private String name; @Override public String toString() { return "ID:" + id + " NAME:" + name; } publi ...
需要用到java.lang.reflect包中Array类的一些方法。 最关键的是Array类中的静态方法newInstance,他能构造新数组。在调用它时必需提供两个参数,一个是数组的元素类型,一个是新数组的长度。 public Object arrayGrow(Object o) { Class cl = o.getClass(); if (!cl.isArray())return null; Class componentType = cl.getComponentType(); int length = Array.getLength(o); int newLength = lengt ...
function cls1() {   this.a='123'; } function cls2() {   this.a='456'; } cls1.prototype.fun1=function() {   alert(this.a); } cls1.prototype.fun2 = function(s){ alert("this.a : " + this.a + " s:" + s); } cls1.prototype.fun3 = function(p1, p2, p3) {   alert("this.a : " ...
Global site tag (gtag.js) - Google Analytics