Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL [] operator query.

 
Nikunj Kshatriya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given:
------------------------------------------------------

-------------------------------------------------------
Would the above code print "find me!" ?

According to HF S&J pg 428 mock answers it would !
Looking at the specs, I dont think it would not, because the quotes around idx wouldnt allow the request attribute to be evaluated.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is quite easy to test, isn't it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic