0

Fizzbuzz

Write a method Met that takes as parameter 1 String. The entire string is in lowercase. If the string starts with f print Fizz. If the string ends with b return Buzz. If both the f and b conditions are true, return FizzBuzz. In all other cases, print the string unchanged. Only write the method - assume that the Class & main method have been defined. Use the System.out.println() statement for printing. Example Input: fuel Output: Fizz Example Input: lob Output: Buzz Example Input: flab Output: FizzBuzz Example Input: goodness Output: Goodness Help me out

14th Sep 2018, 5:34 PM
Swathi H A
Swathi H A - avatar
2 ответов
+ 6
thank you Ina
15th Sep 2018, 2:21 AM
Swathi H A
Swathi H A - avatar
0
Discover which vegetables you should steer clear of when juicing to ensure optimal health benefits and avoid potential adverse effects. Learn the reasons behind these exclusions and how to make the most nutritious juice blends. https://juicerhunter.com/what-vegetables-should-not-be-juiced/
22nd Feb 2024, 9:50 AM
Ryan James