• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Delimiter Doubts...

 
Greenhorn
Posts: 5
Eclipse IDE Tomcat Server Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Im reading value from property file and delimiting using [, and :]

The format of the property file is as below,

ex:

brindha:allow, akila:allow, priya:allow

im using (,)comma as delimiter and im able to retreive the value as belows,

brindha:allow
akila:allow
priya:allow

Is there any possible ways to have these values in list and delimit based on [:] colon, and assign it in different strings.

ex: id = brindha
access = allow

id=akila
access=allow

id=priya
access=allow

Please advise....

Thanks and Regards,
Brinz
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Brinz Narasimhan wrote:
Is there any possible ways to have these values in list and delimit based on [:] colon



You already know how to split(), obviously, so just split those smaller pieces on colon the way you split the overall string on comma.

, and assign it in different strings.



Yes. I don't understand why you're asking this part of the question. You know how to assign a value to a variable, right?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic