Thursday, February 10, 2011

Java String Examples

Comparing Strings (== operator)
This section describes how two string references are compared. If two String variables point to the same object then these two variables are called references for the same object.

Creation of StringBuffer
In this section, you will learn how to create a string buffer. Here we have used the following StringBuffer Constructors.  

Reading File into a Byte Array
In this section, you will learn how to make a file to be read into a byte array. Here we have used inputStream constructor to take file as a parameter.

Java Count Vowels
In this program you will learn how to count vowels in a String. Here you will be asked to enter a String of your own choice and then you will get the number of vowels from that String.

No comments:

Post a Comment