摘要: byt Byt short Short int Integer long Long float Float double Double char Character booleam Booleam int num=10; Integer num1=new Integer(num); 原始装箱 Int 阅读全文
posted @ 2016-04-14 22:34 风。 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 用static修饰的变量变常量,第一次声明之后不会再被声明,若改变将影响其他。 用static修饰的方法不需要NEW,直接类名加方法名就可以引用。 final修饰的常量不能被修改。 final修饰方法不能被重写。 final修饰的类不能被继承。 abstract 只做声明,不实行,声明 的类的方法在 阅读全文
posted @ 2016-04-14 22:05 风。 阅读(73) 评论(0) 推荐(0) 编辑
摘要: package Zuoye; import java.io.EOFException; public class YIchang { public int say(int num, int num1) throws Exception { if (num < num1) { throw new Ex 阅读全文
posted @ 2016-04-14 21:52 风。 阅读(64) 评论(0) 推荐(0) 编辑
摘要: package wode; import java.awt.GradientPaint;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.ut 阅读全文
posted @ 2016-04-14 21:49 风。 阅读(92) 评论(0) 推荐(0) 编辑
摘要: package Student; import java.util.Scanner; public class Student { /** * 计算学生成绩 */ public static void main(String[] args) { Scanner s=new Scanner(Syste 阅读全文
posted @ 2016-04-14 21:47 风。 阅读(172) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class PalindromicNumber { /** * 输入一个五位数判断是否为回文数 */ public static void main(String[] args) { Scanner s=new Scanner(Sys 阅读全文
posted @ 2016-04-14 21:46 风。 阅读(241) 评论(0) 推荐(0) 编辑
摘要: package Student; import java.util.Scanner; public class Grade { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated m 阅读全文
posted @ 2016-04-14 21:44 风。 阅读(150) 评论(0) 推荐(0) 编辑
摘要: public class Card { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int stu[] = new int[3]; try{ for( 阅读全文
posted @ 2016-04-14 21:42 风。 阅读(546) 评论(0) 推荐(0) 编辑