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