Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I m trying on a scenario where i would like to count the number of vowels in a column.
But according to my approach.....
trowgenerator ----> tmap -----> ??
How should i proceed??
Logic : -
for eg. abcad
Number of vowels are :- 1 (a -> repeated twice)
for eg. aeiou
Number of vowels are :- 5...
Other than Routines.. how to tackle this ???
Hi,
You will have to write custom java code for your use case. You can park it either within routine or some other java component.
My recommendation will be to create a routine and call it through tmap where you will be given the input string as input parameter and you will get the vowel count as output parameter of routine.
Below link will help you to get simple code snippet in Java.
https://www.programiz.com/java-programming/examples/vowel-consonant-count-string
Don't worry about the jargon and they are quite simple. Happy Programming 🙂
Warm Regards,
Nikhil Thampi