collection和collections的区别
浅谈HashMap和HashTable的区别
MyBatis动态传入表名
Java获取Excel单元格数据
SpringMVC文件下载
package moni; public class Test { public static void main(String[] args) { // TODO Auto-generated method stub int i=1234567
public class CheckWord { public final int basicAmount=85; String advertisement; int amount; public CheckWord(String advertisement){ this.adverti
public interface carepet { public void food(); public void play(); } public class Worker implements carepet{ String name; public
JAVA语言中接口里的抽象方法不使用abstract关键字、例如: public interface Sing { public static final String eyecolor="black"; public void sleep(); public void sing(); } 其中sing方法和sleep方法都是抽象方法。
抽象类: public abstract class Animal { int age; public Animal(int age){ this.age=age; } public abstract void run(); public abstract void clock(); } public class Dog extends Animal{ String color; public Dog(int age,String color){ super(age); this.color=color; } public void run(){ System.out.println("这只"+age+"岁的狗这样跑");
package lc1;public class Person { private String name; private String location; Person(String name){ this.name=name; location="beijing"; } Person(String
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号