Hi Karthik,
The
Sun Code Conventions recommends only having one declaration per line.
As for your problem .... I think if you check your instructions, you will find that the field names and field contents are stored as bytes. Possibly even US-ASCII 7 bit bytes (which will raise another question I am sure
)
You are trying to read a Character which is two bytes long.
You need to read in bytes fully, then convert them to a
String.
Regards, Andrew