text mining - How to remove the numbers in the file in java -
This is my code ... Help me remove the number before commas and print both words
< Pre> for (int y = 0; y and lt; nso.length; y ++) {file e = new file (nso [y]); Bufferreader ho = new buffitter (new flamerdidder (e)); String St, T; While ((st = be.readline ())! = Null ({if (St. Konin ("ns")} {int offset = st.indexOf ("("); st = st.substring (offset + 1, St .length () - 3); System.out.println (st); ap.write (st); ap.println ("\ n");}} ap.close (); be.close ();
In the file
phone-6, this address-8, I see -5, you have phone -14, this-graphics-2, is -
You st.replaceAll (regex, "")
string result = St.replaceAll ("[0-9] +", ""); System.out.println (as a result of "
);
Comments
Post a Comment