|
Java example source code file (BadlyTypedLabel2.java)
The BadlyTypedLabel2.java Java example source code/* * @test /nodynamiccopyright/ * @bug 6827009 * @summary Check for case lables of different types. * @compile/fail -source 6 BadlyTypedLabel2.java * @compile/fail/ref=BadlyTypedLabel2.out -XDrawDiagnostics BadlyTypedLabel2.java */ import static java.math.RoundingMode.*; class BadlyTypedLabel2 { String m(String s) { switch(s) { case "Oh what a feeling...": return(s); case CEILING: return ("... switching on the ceiling!"); } } } Other Java examples (source code examples)Here is a short list of links related to this Java BadlyTypedLabel2.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.