public class FizzBuzz { static int start = 1; static int end = 100; public static void main(String[] args) { for(int number=start; number<=end; number++) { StringBuffer outStr = new StringBuffer(); if(number%3 == 0) outStr.append("Fizz"); if(number%5 == 0) outStr.append("Buzz"); if(outStr.length() != 0) System.out.println(outStr); } } }