• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Errors in Regular Expression example on Eclipse

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
reply
    Bookmark Topic Watch Topic
  • New Topic