From a29eb7bd995a42eb1aaa515cc0766faa1b3a1388 Mon Sep 17 00:00:00 2001 From: Vinayak Sharma <80938731+vinayak19-alt@users.noreply.github.com> Date: Sun, 29 Oct 2023 16:45:02 +0530 Subject: [PATCH 1/3] Update CONTRIBUTORS.md --- CONTRIBUTORS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index e5120e7..56d8613 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -8,3 +8,9 @@ - Bio: New to github and coding in general - Github: JellyFishJuggler(https://github.com/JellyFishJuggler) +## Name: [Vinayak Sharma](https://github.com/vinayak19-alt) + +- Place: India +- Bio: Mobile Application Developer +- Github: vinayak19-alt(https://github.com/vinayak19-alt) + From 3208c4db87a347b6135f3f675a606b1f4e72b5e7 Mon Sep 17 00:00:00 2001 From: Vinayak Sharma <80938731+vinayak19-alt@users.noreply.github.com> Date: Sun, 29 Oct 2023 16:51:29 +0530 Subject: [PATCH 2/3] Create VinayakSharma.md --- profiles/VinayakSharma.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 profiles/VinayakSharma.md diff --git a/profiles/VinayakSharma.md b/profiles/VinayakSharma.md new file mode 100644 index 0000000..0ce6067 --- /dev/null +++ b/profiles/VinayakSharma.md @@ -0,0 +1,28 @@ +# Vinayak Sharma + +### Location + +Agra, Uttar Pradesh, India + +### Academics + +SRM University, Ghaziabad + +### Interests + +- Java +- Android +- Flutter +- Music + +### Development + +- Mobile Application Developer + +### Projects + +- Flash Chat - A chatting Application which let users to communicate in rael-time. + +### Profile Link + +[Vinayak Sharma](https://github.com/vinayak19-alt) From 04621a4d5085134cd7f7d979a4fbc8afeed6e7f1 Mon Sep 17 00:00:00 2001 From: Vinayak Sharma <80938731+vinayak19-alt@users.noreply.github.com> Date: Sun, 29 Oct 2023 17:00:27 +0530 Subject: [PATCH 3/3] Create VowelsConsonants.java --- scripts/VowelsConsonants.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/VowelsConsonants.java diff --git a/scripts/VowelsConsonants.java b/scripts/VowelsConsonants.java new file mode 100644 index 0000000..70221ca --- /dev/null +++ b/scripts/VowelsConsonants.java @@ -0,0 +1,22 @@ +import java.util.Scanner; + +public class VowelsConsonants { + public static void main(String[] args) { + System.out.println("Enter your String:"); + Scanner sc= new Scanner(System.in); + String s = sc.nextLine(); + calculate(s); + } + static void calculate(String s){ + int count1=0, count2=0; + for(int i=0; i< s.length()-1; i++){ + if(s.charAt(i) == 'a' || s.charAt(i) == 'e' || s.charAt(i) == 'i' || s.charAt(i) == 'o' || s.charAt(i) == 'u'){ + count1++; + }else{ + count2++; + } + } + System.out.println("No. of Vowels:" + count1); + System.out.println("No. of Consonants:" + count2); + } +}