package ArgTypes;
enum argumentValueTypes (double=0, bool=1, int=2);
// Constructor of individual pairs of argument names and types
public class ArgTypes
{
// Instance
String argName;
argumentValueTypes argumentValueType;
// Constructor of each pair
public ArgTypes (String argName, argumentValueTypes argumentValueType)
{
this.argName = argName;
this.argumentValueType = argumentValueType;
}
}
Java expects package members to be in subdirectories named after the package. In this case, you have a source directory with ArgTypes.java in it, and Java wants you to move it into a subdirectory named ArgTypes. At a guess, the other errors are either fallout from the first, or else the compiler can't find class argumentValueTypes (possibly because of a package mismatch?)
ReplyDelete