Strings, I/O and formatting (Part-1)

"Hey Isla Are you serious??Strings,IO and formatting???"Hmmm..yeah I agree with you.This is basic Java.Anyway no problem we'll go further and discuss and see how much you know about Java Strings,I/O and formatting.We'll start with a little background information about strings. Strings are immutable objects.(You know what I mean) String is a 16-bit Unicode character In java string is an object.You can create a new instance using new keyword String myString=new String(); This creates a new string object and assign it to myString reference variable.Cool..Now we need to assign a value to the new variable.Let's do it like this. myString="Hasitha"; And we are done.Now we have a string variable with a value.Is this the only way we can do this.Absolutely no.String class has a number of constructors.We can do the same thing as follows. String myString=new String("Hasitha"); String myString="Hasitha"; Hmmm...Note that there...