⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myfilter.txt

📁 3D手机游戏开发实例源代码 3D迷宫游戏的演示程序
💻 TXT
字号:
import java.io.*;
import javax.microedition.rms.*;
public class MyFilter implements RecordFilter {
  int criterion;
  MyFilter(int criterion) {
    this.criterion = criterion;
  }
  public boolean matches(byte[] candidate) {
    try {
      DataInputStream din = new DataInputStream(new ByteArrayInputStream(candidate));
      din.reset();
      if (din.readInt() >=criterion) return true;
    }catch (Exception e) {}
    return false;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -