[ create a new paste ] login | about

Link: http://codepad.org/EerNzjtS    [ raw code | output | fork ]

Perl, pasted on Sep 4:
/**
 *
 * @author xxxx
 */
public class method372 {
	int data[] = new int[90];
	void methodstart() {
		int val, cnt = 0;
		for(val = 3; cnt < 90; val += 3)
			if(val % 7 != 2)
				data[cnt++] = val;
	}
	void print(){
		int i, j, linecounter = 1;
		for(i = 0; i < 90;) {
			System.out.print((linecounter++) + ":");
			for(j = 0; j < 10; j++)
				System.out.printf("%3d ", data[i++]);
			System.out.println("");
		}
				
	}
	public static void main(String[] args) {
		method372 m = new method372();
		m.methodstart();
		m.print();
	}
}


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Semicolon seems to be missing at line 4.
Bareword found where operator expected at line 11, near ")
				data"
	(Missing operator before data?)
Bareword found where operator expected at line 18, near ")
				System"
	(Missing operator before System?)
Bareword found where operator expected at line 23, near "] args"
	(Missing operator before args?)
syntax error at line 5, near "public class "
  (Might be a runaway multi-line // string starting on line 1)
syntax error at line 7, near ") {"
syntax error at line 10, near ")
			if"
syntax error at line 16, near "linecounter++"
syntax error at line 18, near ")
				System"
Search pattern not terminated at line 24.


Create a new paste based on this one


Comments: