Cannot find class in same package

Viewed 39166

I am trying to compile Board.java, which is in the same package (and directory) as Hexagon.java, but I get this error:

Board.java:12: cannot find symbol
symbol  : class Hexagon
location: class oadams_atroche.Board
    private Hexagon[][] tiles;

The first few lines of Board.java:

package oadams_atroche;

import java.util.LinkedList;
import java.util.Queue;
import java.io.PrintStream;

import p323.hex.*;

public class Board implements Piece{
>---//Fields
>---private int n;
>---private Hexagon[][] tiles;

The first few lines of Hexagon.java:

package oadams_atroche;

import p323.hex.*;

public class Hexagon implements Piece{

I just cannot see what I am doing wrong. Any ideas?

Thanks

3 Answers
Related