Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

stackOverflowError?  RSS feed

 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i get this :
java.lang.StackOverflowError
Exception in thread "main"


what is that??
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't compile your code for the following reason.

This line calls a class not shown. I believe you error most probably lies in this class as when I amended your class with the following


The code then compiled and ran successfully
 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you ver much Nigel!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!