1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
public class PR8866 { public static void main (String args[]) { String attTypeString = ""; switch (args.length) { case 1: attTypeString = "string"; case 4: attTypeString = "ID";; case 5: attTypeString = "IDREF";; case 6: attTypeString = "NMTOKEN";; case 7: attTypeString = "NOTATION";; default: ; } } }