Java program to convert first character uppercase in a sentence

Java program to convert first character uppercase in a sentence and if apart from first character if any character is in Uppercase then convert in into Lowercase.

 

Following is the program

Feel free to comments if any doubts.

Like and share if you like ๐Ÿ™‚

Advertisements

Circular array

An array is called circular if we consider first element as next of last element.

Here is the simple program for it:

 

 

Feel free to comment if you have any doubts.

If you like please shareย  and subscribe ๐Ÿ™‚

Swapping two variables in One Line

Hi friends,

Recently i was there in a situation where in i needed to swap the values rather using the traditional way.

Following is the small java program which will give you the idea:

If you don’t like bitwise operations u can use following program

 

Feel free to comment if you have any doubts and share if like. ๐Ÿ™‚