代码搜索:boolean
找到约 10,000 项符合「boolean」的源代码
代码结果 10,000
www.eeworm.com/read/271686/10984623
txt 提高java代码可重用性的三个措施(1).txt
作者:五一
日期:2001-6-7 16:38:42
提高Java代码可重用性的三个措施(1)
松下客 2001-05-29 09:35:18
本文介绍了三种修改现有代码提高其可重用性的方法,它们分别是:改写类的实例方法,把参数类型改成接口,选择最简单的参数接口类型。
措施一:改写类的实例方法
通过类继承实现代码重用不是精确的代码重用技术,因此它并不是 ...
www.eeworm.com/read/271686/10984682
txt 转载:java的文件对象操作.txt
作者:lovefan
email: lovefan@cmmail.com
日期:2001-7-6 11:02:54
java文 件对象操作
在 我 们 进 行 文 件 操 作 时, 需 要 知 道 一些关 于 文 件 的信 息。File类 提供了 一些 成 员 函 数 来 操 纵 文 件 和 获得 一些文 件 的 信 息。
1、创
www.eeworm.com/read/271631/10986112
java one.java
/*
*方块:■
* ■
* ■
* ■
*/
public class One extends Root//第一个方块
{
private GameTable gTable;//创建游戏桌子
private int x,y;//方块左上角现在在桌子上的位置
private int direct=1;//第一个角度
privat
www.eeworm.com/read/271631/10986120
java four.java
/*
*方块:■
* ■■
* ■
*/
public class Four extends Root
{
private GameTable gTable;
private int x,y;
private int direct=1;
private int[] store;
public Four()
{
www.eeworm.com/read/271631/10986136
java two.java
/*
*方块:■■
* ■■
*/
public class Two extends Root
{
private GameTable gTable;
private int x,y;
private int direct=1;
private int[] store;
public Two()
{
store=new int
www.eeworm.com/read/271631/10986141
java three.java
/*
*方块: ■
* ■■
* ■
*/
public class Three extends Root
{
private GameTable gTable;
private int x,y;
private int direct=1;
private int[] store;
public Three()
{
www.eeworm.com/read/271631/10986152
java root.java
public class Root//8个方块的根类,具有一般性
{
public boolean begin()//初始化显示
{
return true;
}
public boolean down()//向下移动
{
return true;
}
public boolean left()//向左移动
{
return true;
www.eeworm.com/read/271631/10986170
java eight.java
/*
*方块:■
*/
public class Eight extends Root
{
private GameTable gTable;
private int x,y;
private int direct=1;
private int[] store;
public Eight()
{
store=new int[15];
}
www.eeworm.com/read/417448/10989789
java keyrepeator.java
/*
* KeyRepeator.java
*
* Created on 2003年4月29日, 下午9:39
*/
package handenglish;
/**
*
* @author sanmulong
*/
public interface KeyRepeator {
public void movePressed( int gameAction );
www.eeworm.com/read/271530/10990123
txt 手机短信(2).txt
// SMSUtil.java
package my.util;
import javax.wireless.messaging.*;
import javax.microedition.io.*;
/**
* 发送文本短信息的方法
*/
public class SMSUtil{
/**
* 给指定号码发送短信息