T
Thomas
1)Hello I noticed that java needs a separated file for each file. Isn't it
too much ? I writing a simple project and have to use too many of them I
suppose. Is there any way to reduce it, for example putting the code of
several classes into one file ?
2) I have two interfaces :
==============================================================
public interface Value {
double evaluate () throws IllegalStateException;
}
=============================================================
public interface Arguments extends Value
{
int arity ();
int missingArguments ();
void addArguments (double) throws IllegalStateException;
}
=================================================================
I get identifier expected at the last line it the second class, Whats wrong
?
too much ? I writing a simple project and have to use too many of them I
suppose. Is there any way to reduce it, for example putting the code of
several classes into one file ?
2) I have two interfaces :
==============================================================
public interface Value {
double evaluate () throws IllegalStateException;
}
=============================================================
public interface Arguments extends Value
{
int arity ();
int missingArguments ();
void addArguments (double) throws IllegalStateException;
}
=================================================================
I get identifier expected at the last line it the second class, Whats wrong
?