Toggle navigation
Code Exercises
Interview Planner
Interview Guide
Practice Now
Blog
About
Easy
Moderate
Challenging
Fizz Buzz
Prime Number
Fibonacci Number
Palindrome Check
Even Fibonacci Sum
Greatest Common Divisor
Package Rice Bags
Filter Strings (Java 8 Lambdas and Streams)
Comma Separated (Java 8 Lambdas and Streams)
Ceasar Cipher
Strict Binary Tree Check
Two Sum (Pair with a Given Sum)
Fizz Buzz
Write a method that returns 'Fizz' for multiples of three and 'Buzz' for the multiples of five.
For numbers which are multiples of both three and five return 'FizzBuzz'.
For numbers that are neither, return the input number.
public String fizzBuzz(Integer i) {
}
Submit
Clear
Solution