//: generics/Manipulation.java // ©2015 MindView LLC: see Copyright.txt // {CompileTimeError} (Will not compile) class Manipulator { private T obj; public Manipulator(T x) { obj = x; } // Error: cannot find symbol: method f(): public void manipulate() { obj.f(); } } public class Manipulation { public static void main(String[] args) { HasF hf = new HasF(); Manipulator manipulator = new Manipulator<>(hf); manipulator.manipulate(); } } ///:~