I'm using NetBeans IDE 5.5

package scalar;

/**

*

* @author UndergroundPassion

*/

public class Main {

/** Creates a new instance of Main */

public Main() {

}

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

// TODO code application logic here

int a[3], b[3], c[3];

int x;

for [i = 0 to 2] {

a[i] = i;

b[i] = 2 – i;

c[i] = 999;

}

proc row[i = 0 to 2] {

c[i] = a[i]*b[i];

}

x = c[2];

}

}

I keep getting this in the output window:

init:

deps-jar:

Compiling 1 source file to G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\build\classes

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :28: ']' expected

int a[3], b[3], c[3];

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :28: not a statement

int a[3], b[3], c[3];

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :28: ';' expected

int a[3], b[3], c[3];

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :28: not a statement

int a[3], b[3], c[3];

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :30: '(' expected

for [i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :30: illegal start of expression

for [i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :30: ';' expected

for [i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :30: not a statement

for [i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :30: ';' expected

for [i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :32: illegal character: \8211

b[i] = 2 – i;

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :32: not a statement

b[i] = 2 – i;

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :35: ']' expected

proc row[i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :35: ';' expected

proc row[i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :35: not a statement

proc row[i = 0 to 2] {

G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java :35: ';' expected

proc row[i = 0 to 2] {

15 errors

BUILD FAILED (total time: 2 seconds)