Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question 58 Quiz B in master exam of K&B

 
Sanjay Singhaniya
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has a line mentioning
Arrays.asList(16,8,42,15,4,23)

I am getting compiler error on this stmt. But the answer to the question is not "compilation fails".
I have attached the screenshot.
Please explain.
58.jpg
[Thumbnail for 58.jpg]
 
Stephen Davies
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct, the code compiles and prnts 42. I suppose it is an error.

 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!