← all problems

Fix the wrong data type 🌶️

The program below is supposed to track whether it's raining and print that value. It doesn't compile. Look closely at the value being assigned on the right side of the equals sign, and compare it to the data type the variable was declared with on the left. Fix the declaration (not the value) so the code compiles and prints correctly.

Main.java — the program frame below is already written; you're only completing the code in the editable box.

public class Main {
    public static void main(String[] args) {
        // ---- write your code below ----
        System.out.println(isRaining);
    }
}