Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package appli;
- import info1.ships.*;
- public class Application {
- public static void main(String[] args) {
- try {
- String c1 = new String("A1");
- String c2 = new String("A3");
- IShip bateau = new Cruiser("navire",c1,c2 );
- NavyFleet maFlotte = new NavyFleet();
- maFlotte.add(bateau);
- maFlotte.toString();
- } catch (CoordsBadShipException e) {
- e.printStackTrace();
- } catch (BadCoordException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement