Strings Solutions
Strings Solutions
g1bhagat101@gmail.com
Solution 1:
import java.util.*;
Following are some methods in Java which are used to replace characters:
Solution 4:
g1bhagat101@gmail.com
import java.util.Arrays;
public class Solution {
public static void main(String[] args) {
String str1 = "earth";
String str2 = "heart";