General Computer Science
Things We Should Know About NetBeans
Variables
Variables Part 2
Java Commands
100

This is checked by the CPU if the cache does not have the next instruction.

What is RAM?

100

This is what EVERY Java class name should end with when creating a JFrame.

What is UI?

100

This type of variable can hold ANY characters, but CANNOT do math.

What is a STRING?

100

This word means to actually create the variable by typing in the code to make it.

What is DECLARE?

100

This command will pull data out of the textbox called “txtName”.

What is txtName.getText(); ?

200

This is the 3 step cycle that ALL computer programs compete.

What is INPUT PROCESS OUTPUT?

200

This MUST be added when using radio buttons.

What is a BUTTON GROUP?

200

This type of variable is best for WHOLE NUMBERS.

What is an INTEGER?

200

When typing in the code to create a variable, this is where we put it in the “source” area of NetBeans.

What is at the VERY BOTTOM?

200

This command will produce a pop-up message.

What is JOptionPane?

300

This take 8 of them to represent one character from the keyboard.

What is a BIT?

300

This button is great to use when you find your updated design doesn’t seem to appear when you run the app.

What is CLEAN AND BUILD?

300

Want to hold a decimal number?  This will do it!

What is a FLOAT?

300

This command will “initialize” a float variable called “price”.

What is price = 0; ?

300

This command will change the text colour of a label called “lblMessage” to red.

What is lblMessage.setForeground(Color.RED); ?

400

This term means to check for errors, and then convert the instructions to machine code (binary).

What is COMPILE?

400

What to do when your properties or palette disappears.

What is click on WINDOW then RESET WINDOWS?

400

This is where the variables are actually held, in small “boxes”.

What is RAM?

400

Typically, the information that we put into a variable come from this type of object on the “design” screen of our app.

What is a TEXT BOX?

400

lblAnswer.setText(5+5);

What command will display the number 10 in a label called “lblAnswer”?

500

The NetBeans software itself is an example of this 3 letter acronym.

What is IDE?

500

This layout option really helps when your objects just won’t stay where you drag them.

What is ABSOLUTE?

500

This is the Java command to make an integer variable called “age”.

What is INT AGE; ?

500

If you had a string with the word “hello” in it, this command would give you the answer “e”.

What is .charAt(1) ?

500

.isSelected()

What command will see if a checkbox is checked?

M
e
n
u