![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java编程
jane_dxj
这个作者很懒,什么都没留下…
展开
-
JDK1.5版本以后出现的新特性
/* JDK1.5版本以后出现的新特性。 */ class IntegerDemoxin { public static void main(String[] args) { Integer x=4;//自动装箱。//new Integer(4) x=x+2;//x=2:x进行自动拆箱,变成int类型,和2进行加法运算。再将和进行装箱付给x //Integer x= n转载 2014-06-03 16:11:30 · 416 阅读 · 0 评论 -
Java中关键字
关键字的定义和特点 定义:被Java语言fu'y转载 2014-06-29 13:30:25 · 355 阅读 · 0 评论 -
if和switch和for语句
if和switch很像。 具体什么场景下,应用那个语句呢? 如果pan'dan转载 2014-06-30 20:21:06 · 1126 阅读 · 0 评论 -
函数
格式: 修饰符 返回类型 han'shu转载 2014-07-01 09:47:27 · 331 阅读 · 0 评论 -
java程序运行顺序
我们以下面的类来说明一个基本的 Java 类的运行顺序: 第1行 public class Test { 第2行 private String name = ""; 第3行 private int age = 2; 第4行 public Test(){ 第5行 age = 1000;//期望能到1000年,呵呵 第6行 } 第7行 public static void mai转载 2014-05-29 15:19:04 · 852 阅读 · 1 评论 -
基本数据类型对象包装类
/* 基本数据类型对象包装类。 byte Byte short Short int Integer long Long boolean Boolean float Float double Double char Character //基本数据类型对象包括类的最常见作用, //就是用于基本数据类型和字符串类型之间的转换 基本数据类型转成字符串,转载 2014-05-30 09:27:50 · 721 阅读 · 0 评论 -
修饰符
private:私有,权限修饰符,用于修饰类中的转载 2014-07-03 22:32:04 · 354 阅读 · 0 评论 -
Java如何对一个数开方
Math.Sqrt();原创 2017-05-12 14:50:33 · 12760 阅读 · 5 评论 -
程序崩溃处理
public class CrashHandler implements Thread.UncaughtExceptionHandler { public static CrashHandler mAppCrashHandler; private Thread.UncaughtExceptionHandler mDefaultHandler; private MyAppli转载 2017-04-26 15:07:15 · 334 阅读 · 0 评论