上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

2018年3月3日

生成二维码的JAVA

摘要: 不多说,上代码 package tcc;import java.awt.Color;import java.awt.Graphics2D;import java.awt.image.BufferedImage;import java.io.File;import java.io.IOExceptio 阅读全文

posted @ 2018-03-03 14:01 JETIME庚 阅读(129) 评论(0) 推荐(0) 编辑

2018年1月1日

多态的理解

摘要: 1.要有继承关系 2.要重写父类的方法(方法名相同参数不同) 3.父类引用指向子类对象(animal a = new cat()) 当测试的时候可以发现 当方法不是静态方法时,方法编译看左边,运行看右边 阅读全文

posted @ 2018-01-01 22:45 JETIME庚 阅读(143) 评论(0) 推荐(0) 编辑

2017年12月7日

打印低头思故乡 java

摘要: public static void main(String args[][){ char poet[] = str.tocharArray(); int pos = 18; while(true){ for(int i=pos;i>=0;i-=6){ System.out.print("poet[ 阅读全文

posted @ 2017-12-07 16:20 JETIME庚 阅读(138) 评论(0) 推荐(0) 编辑

随机密码生成

摘要: public static void main(String args[]){ char[] PardStore = new char[62]; for(int i=0;i<26;i++){ pardStore[i]=(char)('A'+i); } for(int i=0;i<52;i++){ p 阅读全文

posted @ 2017-12-07 16:02 JETIME庚 阅读(143) 评论(0) 推荐(0) 编辑

倒计时问题java

摘要: public static void main(String args[]){ Scanner sc = new Scanner(); int x = sc.nextInt(); System.out.println("请输入时间"); int xiaohsi,fen,miao; xiaoshi = 阅读全文

posted @ 2017-12-07 15:21 JETIME庚 阅读(139) 评论(0) 推荐(0) 编辑

百钱买鸡

摘要: public static void main(String args[]){ int x,y,z; for(x=1;i<20;i++){ for(y=1;y<33;y++){ z=100-x-y; if(x*5+y*3+z/3==100 && z%3==0){ System.out.println 阅读全文

posted @ 2017-12-07 15:17 JETIME庚 阅读(131) 评论(0) 推荐(0) 编辑

去7JAVA

摘要: public static void main(String args){ for(int i=1;i<100;i++){ if(i%7!=0 && i %10!=7 && i/10!=7){ System.out.println(i); } } } 阅读全文

posted @ 2017-12-07 15:13 JETIME庚 阅读(610) 评论(0) 推荐(0) 编辑

贪吃蛇Controller Java实现(二)

摘要: package cn.tcc.snake.Controller;import java.awt.Point;import java.awt.event.KeyAdapter;import java.awt.event.KeyEvent;import java.util.Random;import c 阅读全文

posted @ 2017-12-07 10:11 JETIME庚 阅读(215) 评论(0) 推荐(0) 编辑

贪吃蛇Global Java实现(二)

摘要: package cn.tcc.snake.util;public class Global {public static final int CELL_SIZE=20;public static final int WIDTH=15;public static final int HEIGHT=15 阅读全文

posted @ 2017-12-07 10:10 JETIME庚 阅读(156) 评论(0) 推荐(0) 编辑

贪吃蛇GamePanel Java实现(二)

摘要: package cn.tcc.snake.tcc.View;import java.awt.Color;import java.awt.Graphics;import javax.swing.JPanel;import cn.tcc.snake.antition.Food;import cn.tcc 阅读全文

posted @ 2017-12-07 10:09 JETIME庚 阅读(843) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

导航