Ok good news and bad news, I got the errors gone BUT now when it runs the output is nothing. Why is this?
Heres my code now
package firstproject;
import java.util.*;
public class Main {
public static void main(String[] args) {}
String status;
int speed;
float Temperature;
void checkTemperature() {
if (Temperature > 660) {
status = "returning home";
speed = 5;
}
}
void showAttributes() {
System.out.println("Status: " + status);
System.out.println("Speed: " + speed);
System.out.println("Temperature: " + Temperature);
}
}
I switched where i put the '}' bracket to fix the errors. But now like I said the programs output is nothing.