hi everyone,
I need a Java Code to extract a string from a file.File contains txt
but i only want to extract the txt after string Object Class. Actually
this file is the file containing classes and attributesbut i only want
to extract class name.
example file text:
object class "class1"mmmmmmmmmmm
mmmmmmmmmmmmmm
mmmmmm
object class "class2"
ghj
I want a string array containing class1,class2.
thnks & regards
maHESH
Knute Johnson - 27 Sep 2007 05:55 GMT
> hi everyone,
>
[quoted text clipped - 13 lines]
> thnks & regards
> maHESH
Look at Pattern and Matcher.

Signature
Knute Johnson
email s/nospam/knute/
Roedy Green - 27 Sep 2007 06:42 GMT
>I want a string array containing class1,class2.
See http://mindprod.com/jgloss/string.html
http://mindprod.com/jgloss/regex.html
to learn how to use the String handling tools.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com