Tag Archives: string
Convert vowels to uppercase in a string
Given a string – say “hello world”, I was interested in capitalizing the vowels in it – IN A CLEAN & EFFICIENT WAY! In the first approach, I use a StringBuilder object to hold the intermediate String while in the second approach, I’m using a C# feature – Linq. In the second approach, there is […]
My take on Java 7 features
No wonder the features look quite impressive indeed. Use of “String” in switch statement was long due! 🙂 InvokeDynamic is also a very useful feature. I have been using C# for quite some time and InvokeDynamic has certainly saved lot of time and improved readability of the code. 1) var foo = new List<int>(); 2) […]
Life …as it is :)
Arthur Ashe, the legendary Wimbledon player was dying of AIDS which he got due to infected blood he received during a heart surgery in 1983. From world over, he received letters from his fans, one of which conveyed:”Why does GOD have to select you for such a bad disease”? To this Arthur Ashe replied: The […]
Login