编写Java应用程序,在main方法中定义字符串"How beautiful it was!",统计字母t出现的次数。