Replace word using "replace" function in String // Java


=============================

public class replace 

{

   public static void main (String args[])

   {

       String s1 = "Computer Application" ;

       String replace_s1 = s1. replace( "Application", "Programming");

       System.out.println( replace_s1 );

   }

}

=============================

Sample Output :

Computer Programming 

=============================