From 6c9d93826d03d8f7c9e6866b63e716779d0fdf9d Mon Sep 17 00:00:00 2001 From: Ankit Raj <85407190+Ankit-5087@users.noreply.github.com> Date: Tue, 18 Oct 2022 19:39:34 +0530 Subject: [PATCH] Create String_freq It is a java based program to input a sentence , compute and print frequency of vowels and also print no. of vowels. --- String_freq | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 String_freq diff --git a/String_freq b/String_freq new file mode 100644 index 0000000..c972bed --- /dev/null +++ b/String_freq @@ -0,0 +1,33 @@ +import java.util.*; +class String1 +{ + public static void main(String args[]) + { + Scanner sc=new Scanner (System.in); + System.out.println("Please enter a sentence"); + String str=sc.nextLine(); + int l=str.length(); + String str1=str.toLowerCase(); + int va=0, ve=0,vi=0, vo=0,vu=0; + for(int i=0;i