package com.sf.util.jdk8; public class PrintCommand implements Command { public void process(int[] target) { for (int tmp : target) { System.out.println("元素:" + tmp); } } }