import java.util.*; class UseTransformers3 { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); System.out.println("Enter some numbers (all on one line, separated by spaces):"); String line = input.nextLine(); String[] numbers = line.split(" "); ArrayList a = new ArrayList(); for(int i=0; i multByM = new Multiplier(m); ArrayList b=Transformers.applyConst(multByM,a); System.out.println("Multiplying the contents by "+m+" gives: "+b); } }