Write a method public static int count vowelsstring str


Problem

1. Write a method public static String repeat(String str, int n) that returns the string str repeated n times. For example, repeat("ho", 3) returns "hohoho".

2. Write a method public static int count Vowels(String str) that returns a count of all vowels in the string str. Vowels are the letters a, e, i, o, and u, and their uppercase variants.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a method public static int count vowelsstring str
Reference No:- TGS02628183

Expected delivery within 24 Hours