error with my program: 'class' or 'interface' expected
below is the program i have written and i have no clue as to why i keep getting this error message: 'class' or 'interface' expected
import java.io.*;
import java.util.*;
public class parity
{
public int even;
public int [] check;
public int parity(int[] a)
{
even=0;
check=a;
}
}
public static void main(String[] args) throws IOException
{
BufferedReader input = new BufferedReader ( new FileReader ("digits.txt"));
int []par1a=(3,5,7,9);
int []par2a=(3,6,7);
int []par4a=(5,6,7);
int []par8a= (9);
parity [] p = (new parity(par1a), new parity(par2a), new parity(par4a), new parity(par8a));
int wrongBit=0;
String correctedBit = " ";
String bit = input.readLine();
System.out.println("The parity bit is " + bit);
while (!bit.equals("0"))
{
for (int i=0; i < p.length; i++)
{
for(int j=0; j<p.check.length;j++)
{
p even+=Character.getNumericValue(bit.charAt(p.check[j]-1));
}
}
System.out.println("Wrong bits");
for (int k0;k><p.length;k++)
{
System.out.println(p[k].even%2);
if (p[k].even%2!=0)
wrongBi+=2^(k);
}
System.out.println("Wrong bit " + wrongBit);
if (wrongBit !=0)
for(int l=0;l<bit.length();l++)
{
for(int h=0;h<d.length();h++)
{
if(l==d[h]-1)
if(l==wrongBit-1)
if(Character.getNumericValue(bit.charAt(1))==0)
correctedBit+=1;
else
correctedBit+=0;
else
correctedBit += Character.getNumericValue(bit.charAt(1);
}
}
else
correctedBit=bit;
}
}
someone please HELP!
thanks>

