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) 编辑

贪吃蛇Listener Java实现(二)

摘要: package cn.tcc.snake.listener;import cn.tcc.snake.antition.Sanke;//接口//处理用户按键事件public interface SnakeListener {void SnakeMoved(Sanke snake);} 阅读全文

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

导航