Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

is java powerful enough?

Thread view: 
Kumar - 15 Mar 2007 11:57 GMT
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.
Can I do lot of text processing in java?
if yes which part of the java should I read ?
Please help.

---Kumar
Ian Wilson - 15 Mar 2007 12:22 GMT
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-8), 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").
Oliver Wong - 15 Mar 2007 17:49 GMT
> 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.
> Can I do lot of text processing in java?

   Yes.

> if yes which part of the java should I read ?
> Please help.

   Probably regular expressions and IO. If you want to make add a GUI,
you'll also want to read about Swing.

   - Oliver
Arne Vajhøj - 16 Mar 2007 00:53 GMT
> Hello I am new to java and learning it.
> I want to delvelop one application which will take one text file as
[quoted text clipped - 3 lines]
> Can I do lot of text processing in java?
> if yes which part of the java should I read ?

I would consider Java a good choice (maybe not the best
but good).

You just need basic Java stuff: the language plus java.lang, java.io
and maybe java.util classes.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.