equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 package pkg; |
24 package pkg; |
25 |
25 |
26 /** |
26 /** |
27 * This is a sample Enum. |
27 * This is a sample {@index Enum} Enum. |
28 * |
|
29 * @author Jamie Ho |
28 * @author Jamie Ho |
30 */ |
29 */ |
31 public enum Coin { |
30 public enum Coin { |
32 |
31 |
33 Penny, Nickel, Dime; |
32 Penny(1), Nickel(2), Dime(3); |
34 |
33 |
35 public Coin(int i) {} |
34 Coin(int i) {} |
36 |
35 |
37 } |
36 } |