Sha256: ed3efb183c351baaa536607a3a71e02774534867397d6b680ba5bb4250a91435
Contents?: true
Size: 460 Bytes
Versions: 123
Compression:
Stored size: 460 Bytes
Contents
public class Raindrops { public static String convert(int number) { String result = ""; if (number % 3 == 0) { result += "Pling"; } if (number % 5 == 0) { result += "Plang"; } if (number % 7 == 0) { result += "Plong"; } if (result == null || result.isEmpty()) { result = Integer.toString(number); } return result; } }
Version data entries
123 entries across 123 versions & 1 rubygems