Question: pls Answer ASAP, answer needed in 10 mins .. also make sure to put the Code as text so i can copy / paste it

pls Answer ASAP, answer needed in 10 mins .. also make sure to put the Code as text so i can copy / paste it . thanks
note : the question is written in English and Malay language. just read the English part.
Trace the program segment below by showing the values for each variable and write the program segment output. (Assume the codes are free of any syntax error.) 1 2 3 4 5 6 7 8 String s1 = new String ("Good programmer"); String s2 = "Outstanding"; string s3 = s1 + 1 are awesome System.out.println(s1.replace('o', '$')); System.out.println(s3.length()); System.out.println(s2.concat(s2); System.out.println(s3.substring(5) + "cool"); System.out.println((si + s2).indexOf("standing")); [5M] [CPS7] Jawapan/Answer. b) Berdasarkan pengisytiharan rentetan s4 di bawah, tulis segmen atur cara yang mengenal pasti dan memaparkan bilangan aksara 'm' yang berada di dalam pemboleh ubah rentetan s4. Based on declaration of the string s4 below, write a program segment that determine and displays the number of 'm' characters in the s4 string variable. String s4 = "Computer programming"; [5M][CPS7] Jawapan/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
