15 lines
297 B
Java
15 lines
297 B
Java
package DifferentRollers;
|
|
|
|
public enum RollersCount {
|
|
OneRoller(1),
|
|
TwoRollers(2),
|
|
ThreeRollers(3);
|
|
private int numOfRollers;
|
|
RollersCount(int numOfRollers){
|
|
this.numOfRollers = numOfRollers;
|
|
}
|
|
public int getNumOfRollers(){
|
|
return numOfRollers;
|
|
}
|
|
}
|