自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 郝斌Java--19(This)

TextThis1.javaclass A{ public int i; public A(int j) { i = j; } public void show() { System.out.println("i = " + i); } }class TestThis1{ public static void main(String[] args) { A aa1 = new A(5); A aa2 = new A(8); aa1.sho...

2020-05-10 21:38:13 147

原创 郝斌JAVA--18.2

class A{ public int i = 2; public boolean flag = true; public A(int j, boolean f) { i = j; flag = f; } public void show() { System.out.printf("%d\n", i); System.out.printf("%b\n", flag); //boolean用%b或%B来输出 } }class TestConst_2{.

2020-05-10 20:49:36 192

原创 郝斌JAVA--18.1

class A{ public int i;// public int A()// {// } public A(int j) { i = j; } class TestConst_1{ public static void main(String[] args) { A aa = new A();//error 无参形式 A中存在一个有参的构造函数 系统不会再提供无参的了 把注释删掉就是正确的 }} ...

2020-05-10 20:14:26 188

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除