// Before Java 8: JButton show = new JButton("Show"); show.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.out ...
// which makes the original array available as a list. //Nothing is copied and all, only a single wrapper object is created. //Operations on the list wrapper are propagated to the original array.