Skip to content

Commit e4c3445

Browse files
committed
修改输出格式
1 parent ef6fdaa commit e4c3445

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ public static void main(String[] args) {
4848

4949
app.createTeam(new YoungTeamFactory());
5050
LOGGER.info("正在创建一支年轻的队伍...");
51-
LOGGER.info(app.getmCaptain().getDescription());
52-
LOGGER.info(app.getmShip().getDescription());
53-
LOGGER.info(app.getmSailor().getDescription());
51+
LOGGER.info("-->" + app.getmCaptain().getDescription());
52+
LOGGER.info("-->" + app.getmShip().getDescription());
53+
LOGGER.info("-->" + app.getmSailor().getDescription());
5454

5555
app.createTeam(new PermanentTeamFactory());
5656
LOGGER.info("正在创建一支久经考验的队伍...");
57-
LOGGER.info(app.getmCaptain().getDescription());
58-
LOGGER.info(app.getmShip().getDescription());
59-
LOGGER.info(app.getmSailor().getDescription());
57+
LOGGER.info("-->" + app.getmCaptain().getDescription());
58+
LOGGER.info("-->" + app.getmShip().getDescription());
59+
LOGGER.info("-->" + app.getmSailor().getDescription());
6060
}
6161

6262
public Ship getmShip() {

0 commit comments

Comments
 (0)