Please tell me the syntax for the following code?
Class xyz()
{
HotelInfo[] b = new HotelInfo[5];
b[0] = new HotelInfo("PAUL'S CAFE","Laxmi Road");
b[1] = new HotelInfo("GEORGE","MG Road");
...
...
}
The error says " Syntax error on token ";", { expected after this token "
No comments:
Post a Comment