English, asked by Anshuman1900, 7 months ago

Question: Fizzbuzz StringsWrite 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: fuelOutput: FizzExample Input: lobOutput: BuzzExample Input: flabOutput: FizzBuzzExample Input: goodnessOutput: Goodness

Answers

Answered by prajwal413
0

I hope it will help you

And please mark me as brainliest .

Attachments:
Similar questions