Hey, I'm brand new to the forum; just signed up.
Anyway, Im taking a Java programming class right now in college, yet the teacher is horrible doesn't explain anything. She currently just gives us code that we copy and paste into text pad, compile and then run.
So because of this, it leaves everyone full of questions, tis why I need a few answers.
Also I'd appreciate it for the answers to be dumbed down a bit..
1. In the current program she has us writing we are importing 2 files
Now from my understandings, isn't * a wildcard and wouldn't it import everything in java.awt in the first line?import java.awt.*; import java.awt.event.*;
2. Shortly after we have,
Does public mean that the following code is a class? Also are classes like functions as in I can call them later in the program? Also what exactly does static/void mean. I assume main means its the start of the program or main program.public static void main(String[] args) { some code etc }
3. Last question I have is with this piece of code:
Now after WindowEvent, there is an e. Is this a variable? or like a parameter or something?public void windowClosing(WindowEvent e) { System.exit(0); }
Thanks for any replies!