I have the following class:
public class GTent{
enum ttype{RANGE,LENGTH};
int length;
ttype blockType;
public GTent(int i, int j, ttype t) {
this.length= i + j;
this.blockType = t;
}
In some other class, I want to create an object of it. I am not sure how to supply enum value to the constructor. Please advice.