class Box { private T item; public void setItem(T item) { this.item = item; } public T getItem() { return item; } } public class Main { public static void main(String[] args) { Box intBox = new Box<>(); intBox.setItem(123); System.out.println("Integer Box: " + intBox.getItem()); Box strBox = new Box<>(); strBox.setItem("Hello, Java!"); System.out.println("String Box: " + strBox.getItem()); Box dblBox = new Box<>(); dblBox.setItem(45.67); System.out.println("Double Box: " + dblBox.getItem()); } }