There is a problem not with my program but with the weird concept of Java so to speak. What is the code below doing? Is the method acting as the parameter of the forums method? I know it is literally adding an action listener object that really isn't defined much and then it is somehow separating the last parameter parenthesis in the back of the squiggly brackets? I don't understand how this would work. Please explain if you can in-depth.
forums.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
}
});