Hello Sai kiran ,
If you use split method of the
string the trailing empty strings are discarded..
refer
java.lang.String class documentation, there is another overloaded method which takes
one more integer as argument lets you include empty strings as well...