摘要: 1 public class ParamTest { 2 3 /** 4 * @param args 5 */ 6 public static void main(String[] args) { 7 // TODO Auto-generate... 阅读全文
posted @ 2015-11-15 15:23 微风星宇 阅读(146) 评论(0) 推荐(0) 编辑
摘要: GregorianCalendar类:GregorianCalendar():构造一个日历对象,用来表示默认地区,默认时区的当前时间GregorianCalendar(int year, int month, int day)GregorianCalendar(int year, int month... 阅读全文
posted @ 2015-11-15 14:29 微风星宇 阅读(631) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class Message { /** * @param args */ public static void main(String[] args) { // TODO Auto-genera... 阅读全文
posted @ 2015-11-15 13:52 微风星宇 阅读(124) 评论(0) 推荐(0) 编辑
摘要: APIjava.math.BigIntegerBigInteger add(BigInteger other)BigInteger subtract(BigInteger other)BigInteger multiply(BigInteger other)BigInteger divide(Big... 阅读全文
posted @ 2015-11-15 13:41 微风星宇 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1 //1 2 new Object(){ 3 void show(){ 4 System.out.println("show run"); 5 } 6 ... 阅读全文
posted @ 2015-11-15 11:15 微风星宇 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 匿名内部类的格式:new 父类或者接口() { 覆盖父类方法或者定义子类成员}.方法; 1 abstract class Demo2 { 2 abstract void show(); 3 } 4 5 class Outer2 { 6 int num =4; 7 // cl... 阅读全文
posted @ 2015-11-15 11:08 微风星宇 阅读(157) 评论(0) 推荐(0) 编辑