* Main.java
*
* Created on 22 August 2006, 21:56
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package javaapplication7;
/**
*
* @author Dan
*/
public class Main {
/** Creates a new instance of Main */
public Main() {
class Token
{
public static final int o = 1;
public static final int x = 2;
/** INV: token should be a member of the set:
* { Token.o, Token.x }
*/
private int token = 0;
public int getToken() ;
{return token;
}
public void setToken(String token1) {
token = token1;
}
public String toString()
{
if (token == 1)
return "o";
else if (token == 2)
return "x";
else
return " ";
}
public class board {
String[]boardList = newstring[8];
{for (string i=0; i<=1;i++){
System.out.println(boardList[i]);
}
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
}
}
{
}
I HAVE PUT THIS CODE INTO NETBEANS. I CANT RUN THE PROGRAM BECAUSE I GET ERRORS. COULD SOMEONE PLEASE HELP POINT OUT WHY I GET THESE ERRORS AND WHAT COULD BE DONE TO SOLVE THEM. MUCH APPRECIATED
Dan