添加代码到 GITHub 中

This commit is contained in:
YuCheng Hu 2018-11-20 14:16:56 -05:00
parent 76c4731598
commit f4ca94a24b
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package com.ossez.lang.tutorial.overview;
/**
* Java Tutorial Enums
*
* @author YuCheng
*
*/
class FreshJuice {
enum FreshJuiceSize {
SMALL, MEDIUM, LARGE
}
FreshJuiceSize size;
}
public class FreshJuiceEnums {
public static void main(String[] args) {
FreshJuice juice = new FreshJuice();
juice.size = FreshJuice.FreshJuiceSize.MEDIUM;
System.out.println("Size: " + juice.size);
}
}