仔细观察清单2,可以看到,位置信息是由业务逻辑生成的,而产品信息是从数据库取出的。
Looking in more detail at Listing 2, notice that the location information is generated by the business logic, while the product information is fetched from the database.
仔细观察清单5中的Groovlet,会让您回想起第一次编写groovy脚本的时候。
Looking closely at the Groovlet in Listing 5 should take you back to the time when you first started writing Groovy scripts.
仔细观察清单10会发现:一开始我将pop方法编写为当内部容器中有项目时,就返回null。
Looking closely at Listing 10 reveals the issue: I initially coded the pop method to return null if the internal container had anything in it.
应用推荐