package com.java.myapp;
public class MyClass {
public static void main(String[] args) {
String a = new String("This year 2013 Welcome to ThaiCreate.Com Version 2013");
System.out.println(a.replaceFirst("2013","2014"));
}
}
Output
This year 2014 Welcome to ThaiCreate.Com Version 2013