1 public class TestSensorInput {
3 private static FileInputStream inputFile;
4 private static int idx=0;
7 public static void init() {
8 inputFile = new FileInputStream("input.dat");
12 public static byte getCommand() {
13 String in = inputFile.readLine();
18 return (byte) Integer.parseInt(in);
21 public static DEBUG_OUTPUT(){
23 System.out.println(idx);