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

Errors in Regular Expression example on Eclipse  RSS feed

 
Rajiv Rai
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am currently reading the regular expression tutorial provided by Oracle.

Following is a test program for understanding regex



When i try to run the above code example in eclipse it returns the Console object as null..
Hence the example cant run further.
What modifications do i have to do so that it runs in eclipse as well

Thanks
 
Tom Ellis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajiv,

The Eclipse team are looking at fixing this - https://bugs.eclipse.org/bugs/show_bug.cgi?id=122429

As a workaround to get your example going, you can use System.in - so something like:

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!