Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Errors in Regular Expression example on Eclipse

 
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic