Coin.java revision 3233:b5d08bc0d224
1119418Sobrien/* 2119418Sobrien * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. 393746Sjulian * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 493746Sjulian * 593746Sjulian * This code is free software; you can redistribute it and/or modify it 693746Sjulian * under the terms of the GNU General Public License version 2 only, as 793746Sjulian * published by the Free Software Foundation. 893746Sjulian * 993746Sjulian * This code is distributed in the hope that it will be useful, but WITHOUT 1093746Sjulian * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1193746Sjulian * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1293746Sjulian * version 2 for more details (a copy is included in the LICENSE file that 1393746Sjulian * accompanied this code). 1493746Sjulian * 1593746Sjulian * You should have received a copy of the GNU General Public License version 1693746Sjulian * 2 along with this work; if not, write to the Free Software Foundation, 1793746Sjulian * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1893746Sjulian * 1993746Sjulian * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2093746Sjulian * or visit www.oracle.com if you need additional information or have any 2193746Sjulian * questions. 2293746Sjulian */ 2393746Sjulian 2493746Sjulianpackage pkg; 2593746Sjulian 2693746Sjulian/** 27119418Sobrien * This is a sample Enum. 2893746Sjulian * 29113038Sobrien * @author Jamie Ho 30113038Sobrien */ 31113038Sobrienpublic enum Coin { 32113038Sobrien 3393746Sjulian Penny, Nickel, Dime; 3493746Sjulian 3593746Sjulian /** 3693746Sjulian * Overloaded valueOf() method has correct documentation. 3793746Sjulian */ 3893746Sjulian public static Coin valueOf(int foo) { 3993746Sjulian return null; 4093746Sjulian } 4193746Sjulian 4293746Sjulian /** 4395807Sjulian * Overloaded values method has correct documentation. 4495807Sjulian */ 4593746Sjulian public static final Coin[] values(int foo) { 4693746Sjulian return null; 4793746Sjulian } 4893746Sjulian 4993746Sjulian} 5093746Sjulian