坦克大战[源码] ---你懂得

摘要: import java.awt.Color;import java.awt.Frame;import java.awt.Graphics;import java.awt.Image;import java.awt.event.KeyAdapter;import java.awt.event.KeyEvent;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import java.util.ArrayList;import java.util.List;public class TankClient ex 阅读全文
posted @ 2012-05-08 23:07 Yours风之恋 阅读(222) 评论(0) 推荐(0)

用内部类实现java多重实现中的方法同名问题

摘要: //实现两个名字一样但返回值不一样的方法;public class TestClass implements A { public int a() { return 1; } private static class Inner implements B { public void a() { System.out.println("public void a()"); } } public static void main(String[] args) { TestClass tc = new TestClass(); Inner i = new Inner(); i.a 阅读全文
posted @ 2012-05-08 22:18 Yours风之恋 阅读(186) 评论(0) 推荐(0)

java(敲 七)

摘要: Problem输出7和7的倍数,还有包含7的数字例如(17,27,37...70,71,72,73...)Input一个整数N。(N不大于30000)Output从小到大排列的不大于N的与7有关的数字,每行一个。Sample Input20Sample Output71417来源:http://acm.tongji.edu.cn/showproblem.php?problem_id=1006参考代码:import java.util.*;public class TestKnockSeven { public static void main(String[] args) { Scanner. 阅读全文
posted @ 2012-05-08 19:20 Yours风之恋 阅读(407) 评论(0) 推荐(0)