PPaste!

Home - All the pastes - Authored by Thooms

Raw version

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.io.*;

public class Foo {
    private byte[] b;
    private int length;

    Foo() {
        length = 40;
        b = new byte[length];
    }

    public void bar() {
        int y;
        try {
            FileInputStream x = new FileInputStream("z");
            x.read(b, 0, length);
            x.close();
        } catch(Exception e) {
            System.out.println("Oospie");
        }

        for(int i = 1 ; i <= length ; i++) {
            if(Integer.toString(50) == Byte.toString(b[i]))
                System.out.print(b[i] + " ");
        }
    }
}