sheryl lyn b
2007-09-27 23:31:41 UTC
B or b = Battleship
C or C = Cruiser
D or d = destroyer
G or g = Gunboat
other = Invalid code
.. the output is by using JOptionPane.