Question: What is the string currently stored in the StringBuilder a at the end of the code? What is the string currently stored in the
What is the string currently stored in the StringBuilder a at the end of the code? What is the string currently stored in the StringBuilder b at the end of the code? String letters = "faangmula"; StringBuilder a = new StringBuilder(""); StringBuilder b = new StringBuilder(""); for (int i = 0; i < letters.length(); i++) { if (i % 2 == 0) { StringBuilder temp = a; } } a = b; b = temp; a.append(letters.charAt(i));
Step by Step Solution
There are 3 Steps involved in it
Answer ngla Answer famu Check the output of above code by compiler Code pu... View full answer
Get step-by-step solutions from verified subject matter experts
