Ill rewrite your updated code with some hints:
package firstproject;
import java.util.*;
public class Main {
// entry point of the program
public static void main(String[] args) {} // program starts and ends here
String status; // instance variable of type String
int speed; // instance variable of type int
float Temperature; // instance variable of type float
// method of the Main class, returns nothing
void checkTemperature() {
if (Temperature > 660) {
status = "returning home";
speed = 5;
}
} // end of method checkTemperature
// method of the Main class, returns nothing.
void showAttributes() {
System.out.println("Status: " + status);
System.out.println("Speed: " + speed);
System.out.println("Temperature: " + Temperature);
} // end of method showAttributes
} // end of class Main
I switched where i put the '}' bracket to fix the errors. But now like I said the programs output is nothing.
Also, switching brackets around like a matching game does nothing for your understanding because you don't actually know why you're moving them around. Your book will have the answer you're looking for.