利用eclipse抽取 代码片段为方法

选取要被抽取成方法的代码片段,右键—>Refactor--->Extract Method

image

填写方法名称

image

 

 

抽取后成了这个样子:

image

posted @ 2016-04-13 17:31  刘江龙  阅读(913)  评论(0编辑  收藏  举报