Saturday, November 27, 2010

Java Tutorial #4

0
The .replace( ) Function in Java


This is one of the easiest yet the most commonly used keyword in Java.  It is used to replace a character or a group of String to an existing String.  This function will take two arguments.  The first argument is the OLD CHARACTER you want to replace with.  The second argument is the NEW CHARACTER/WORD that will replace the old/existing group of String/character.

START------->
Consider this example.  Like I said a while ago, this is one of the easiest function so I don't have to spend more word for it.  The explanation is the comment inside the program.  Read those green lines then later you will get it.




I hope you get it. For questions,  you can put it to the comment box below this one. Thanks.

No Response to "Java Tutorial #4"

Post a Comment