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

processLine  RSS feed

 
E Jen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting a couple of errors with the following code:



The errors are:

void is an invalid type for the variable processLine
Syntax error on token "(", ; expected
Syntax error on token ")", ; expected

Can anybody please help me try to fix this?

Thanks in advance!
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you declaring a method inside your try block?
 
E Jen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I see what I did. Thanks anyway.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!