Java FizzBuzz Exercise Won't Print Anything

https://www.codecademy.com/courses/learn-java/projects/java-fizzbuzz
I’ve been stuck on this exercise for a couple of days now. I got the numbers to all print, but then I couldn’t figure out how to replace the numbers. I thought I had it figured out, but now the console just prints nothing, not even errors! Any help would be much appreciated!

Here’s my code

class FizzBuzz{

  public static void main(String[] args) {
 
 for (int i = 1; i >= 100; i++){
    System.out.println(i);

    if (i % 3 == 0 && i % 5 == 0 ){
  System.out.println("FizzBuzz");
 }

 else if (i % 3 == 0){
   System.out.println("Fizz");
 }

 else if (i % 5 == 0){
   System.out.println("Buzz");
 }
 else{
   System.out.println(i);
    }
 }
  }
      }

Welcome to the forums!

Double-check your for loop declaration. Can you spot the issue?

Oh my goodness thank you so much I totally missed that!

2 Likes