tag:blogger.com,1999:blog-6958126065976802292.post749194404324345885..comments2022-09-14T12:18:51.777-07:00Comments on Code-o-matic: Crazy Java PuzzlerAnonymoushttp://www.blogger.com/profile/07286834543482860937noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6958126065976802292.post-75247533974239479602010-06-21T07:12:48.976-07:002010-06-21T07:12:48.976-07:00I guess a year and a half is enough. The solution ...I guess a year and a half is enough. The solution is...(tam tam tam tam taaaam)...<br /><br />Change List<id> to List<Void><br /><br />I have found a fabulous explanation for this but this textbox is too small for it to fit. :)Anonymoushttps://www.blogger.com/profile/07286834543482860937noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-62944603318809818752010-03-10T01:54:02.910-08:002010-03-10T01:54:02.910-08:00sigh. Indeed that's "the solution", ...sigh. Indeed that's "the solution", as the problem is given. In the original problem I also included the <br /><br />" Void read(List<id>... list);" signature, to avoid exactly this (does [] feel like a puzzle solution?)Anonymoushttps://www.blogger.com/profile/07286834543482860937noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-86418573460957231692010-03-09T21:23:50.561-08:002010-03-09T21:23:50.561-08:00Shortest edit
void read(List [] list);
SureshShortest edit<br />void read(List [] list);<br /><br />SureshSureshhttps://www.blogger.com/profile/14888828947348302655noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-10042223790891947562010-03-07T17:34:52.457-08:002010-03-07T17:34:52.457-08:00Yes, sure.Yes, sure.Anonymoushttps://www.blogger.com/profile/07286834543482860937noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-38510067023153487122010-03-06T21:25:01.419-08:002010-03-06T21:25:01.419-08:00We need to import the java.util.List also.We need to import the java.util.List also.Sivasubramaniam Arunachalamhttps://www.blogger.com/profile/14536802329796490651noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-47883405460336686722009-07-30T06:55:13.001-07:002009-07-30T06:55:13.001-07:00@Saifuddin: sorry about the late response, I had m...@Saifuddin: sorry about the late response, I had misconfigured the blog so I didn't get email updates on comments :). <br /><br />I guarantee you that the puzzle is both very unique and deep. Its roots lie at the dark corners of the VM :)<br /><br />A simple answer to break the name clash is just add "..." to a method parameter list, i.e. varargs. This is 3 chars, and a quite content-free solution (that would hardly make even a beginner's puzzle).<br /><br />Sorry about the the intermingled Greek, some friend from there had popped up :)Anonymoushttps://www.blogger.com/profile/07286834543482860937noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-90742813129301172522009-05-04T11:18:00.000-07:002009-05-04T11:18:00.000-07:00Dimitris - Sam here, from www.java-twisters.blogsp...Dimitris - Sam here, from www.java-twisters.blogspot.com Sorry to use this post as a conversation ground.<br /><br />1. Yep something wrong with blogtrog - the service I used to display formatted code - So the puzzle is not being seen - done a temporary fix for now. Thanks for pointing out.<br /><br />2. It *might* be an time worn puzzle if you had used a null reference to call the static - No its not - its something much simpler :)Feel free to have a look again ...<br /><br />Currently, the questions in twister are supposed to be beginer level - re-thinking if I should go thougher - maybe in some time I might.<br /><br />3. Nice puzzle - I could not think of any solution except converting the 'List' to 'ArrayList' in the seacond read - so 5 additional char. Somehow I get the feeling I am missing something here :)<br /><br />4. Just a thought - why two languages? Makes it hard to navigate your blog :(Saifuddin Merchanthttps://www.blogger.com/profile/09008041357659535766noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-78807602374691154742009-03-29T15:20:00.000-07:002009-03-29T15:20:00.000-07:00Void != void. Kotso, English please re! :)Void != void. Kotso, English please re! :)Anonymoushttps://www.blogger.com/profile/07286834543482860937noreply@blogger.comtag:blogger.com,1999:blog-6958126065976802292.post-22931280006730112762009-03-18T02:39:00.000-07:002009-03-18T02:39:00.000-07:001. Τα import μετράνε, ε?2. Το Void είναι το γνωστό...1. Τα import μετράνε, ε?<BR/>2. Το Void είναι το γνωστό void ή είναι Void object?<BR/><BR/><BR/>btw, σε πρόσθεσα στα link μου. Δε νομίζω να σε πειράζει :-)kWstAshttps://www.blogger.com/profile/17173655813550251654noreply@blogger.com