• Post Reply Bookmark Topic Watch Topic
  • New Topic

Chapter-8 Question-1  RSS feed

 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why below syntax is invalid to get first value of hobbies parameter

${paramValues[hobbies][0]}

Please explain.
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
double quotes are missing

It should be ${paramValues["hobbies"][0]}
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!