I was creating a calculator in Java using Netbeans, When I try to compile,
I get an error saying, “Not a statement”
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
int a;
int b;
int c;
a * Integer.parseInt(jTextField1.getText());
b * Integer.parseInt(jTextField2.getText());
c * a * b;
jTextField3.setText(" " + c);
}
You probably mean for these lines:
to be something like: