> is it possible to replace jet with null or no string?
While you can't directly modify that String, you can certainly create a new String that contains what you want.
It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of [url=http://java.sun.com/reference/api/index.html]documentation[/url] that you can even [url=http://java.sun.com/docs/index.html]download[/url] for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.
[url=http://java.sun.com/reference/api/index.html]Java?API Specifications[/url]
[url=http://java.sun.com/j2se/1.5.0/docs/api/]Java?1.5 JDK Javadocs[/url]
> Okie thanks...i jus thoght i hav to create a sepearet
> function to do this operation...ijus wanted to check
> if java provided any method to replace string like it
> is used to replace characters.....
>
What part of the following did you not understand?
It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program...
Once you read the documentation for String, and there are many things in there, you would probably find the following....
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#replaceFirst(java.lang.String,%20java.lang.String)