I am learning Java (slowly) from the ground up, but every now and again I peak at some "real" code and I found something that confused me.
The following line and ones like it:
JPanel panel = (JPanel) container.getContentPane();
My question is what is happening between (JPanel) and container.getContentPane()? Its not like they are being multiplied right?
I know this is a basic part of the language and as I continue learning I'll get to this part, but I got really curious and wanted to know what it was right away. I didn't really know what to google to get the answer.
JPanel. Without this , by itself Java Compiler thinks otherwise.