标签:ati system tar class app public stringbu new str
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); } } }
标签:ati system tar class app public stringbu new str
原文地址:http://www.cnblogs.com/MorZe/p/5999640.html