自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 week和month

 class  week//注释单行     /*多行注释main函数可以保证类的独立运行 程序入口 会被程序调用 多行注释*/ /*  */ {    public static void main(String[] args)  {int  x=4 ; if(x==1) System.out.println("sunday"); else if(x==2) System.out.println...

2018-11-22 22:28:33 299

原创 三角金字塔

这是最终版本    class  table {public static void main(String[] args)  {int x,y,z; for(x=0;x<=9;x++) {for(y=x;y<9;y++) {System.out.print("  "); }  for(z=0;z<=x;z++)  {System.out.print("*   ");   ...

2018-11-22 22:28:17 267

原创 for循环嵌套

 class  table {public static void main(String[] args)  {int x,y; for(x=1;x<=9;x++) {for(y=1;y<=x;y++) {System.out.print("*");  if(x==y) System.out.println("");  }    } } }   class  table {pub...

2018-11-22 22:28:03 99

原创 week if switch

class  week//注释单行     /*多行注释main函数可以保证类的独立运行 程序入口 会被程序调用 多行注释*/ /* 需求根据用户定义的数值,选择不同的星期 */ {    public static void main(String[] args)  {int  x=4 ; if(x==1) System.out.println("sunday"); else if(x==2...

2018-11-22 22:27:52 104

原创 linux开发笔试试题

位运算符: &按位与、^异或、《左移、》右移、~取反 、||按位或。 局部变量和全局变量可以重名     Const type fun(); // 返回值类型为一个const type类型,不能修改Fun( const char *p); fun( const A &a) //保护指针,引用传递的值不被修改.类成员函数:中 fun() const; //表明FUN不能修改成...

2018-11-22 22:27:35 396

原创 函数重载问题

2018-11-22 22:27:09 82

原创 直角梯形和 等腰梯形,第二个还不是很会

 直角梯形 class table {public static void main(String[] args)  {int x,y,z; for(x=0;x<=9;x++) {for(y=0;y<x+9;y++) {System.out.print("* "); }    System.out.println();      } }  } 等腰梯形 public cl...

2018-11-22 22:26:41 382

原创 数组10进制到二进制转换中,用了appendstringbuffer reserve

2018-11-22 22:26:16 191

原创 day10 继承

class person {     String  name;  int age ;     } class student extends person {     //String  name;   worker与student有person这个共同类所以将其提取出来就是继承     //int age;     void study()     {      system.out.prin...

2018-11-22 22:25:59 81

空空如也

空空如也

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

TA关注的人

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