public class FizzBuzz { public static void main(String[] args) { for ( int i = 1; i <= 100; i++) { String fizzBuzzT = ""; fizzBuzzT += (i % 3) == 0 ? "fizz" : ""; fizzBuzzT += (i % 5) == 0 ? "buzz" : ""; System.out.println(fizzBuzzT); } } }