[Solved] A java program such that one character from the first string is concatenated with one character from the second string from left to right [closed]
Here is a solution expanding on your own code (with explanations). Please try to understand the code, before using it in your homework. public static String concateAndAppend(String data1, String data2) { char[] str1 = data1.toCharArray(); char[] str2 = data2.toCharArray(); String result = “”; //we must iterate to the length of the smaller string //if you … Read more