Kumar wrote:
Subject: is java powerful enough?
Yes it is, a better question might be: is Java too powerful?
> Hello I am new to java and learning it.
> I want to delvelop one application which will take one text file as
> input and will show the certain parts of the text file based on the
> condtion. I want to replace the particular part in the text file with
> some other part on different conditions.
Unless doing this as a learning exercise, I'd use sed, awk or Perl.
> Can I do lot of text processing in java?
You can do text processing in assembler, Fortran or Ook. Perhaps what
you mean is: does the Java language (specifically the J2SE platform)
include specific features which are oriented towards text-processing tasks.
Java has methods and classes for reading and writing text files in many
common encodings (e.g. UTF-

, for processing input streams a line at a
time and for applying regular expressions for selecting and replacing text.
> if yes which part of the java should I read ?
Sun's Java tutorials at their website. (Google for "Java tutorial").