Polevoy S.V Lab_work6 #7

Closed
ChipsEater wants to merge 9 commits from LabWork06 into LabWork05
Showing only changes of commit dc45239592 - Show all commits

View File

@ -1,5 +1,18 @@
public enum RollersCount {
Four,
Five,
Six
Six;
public int getValue() {
return switch (this) {
case Four -> 4;
case Five -> 5;
case Six -> 6;
};
}
@Override
public String toString() {
return Integer.toString(getValue());
}
}