Please complete the following program according to the specification given. Partial credit will be given for incomplete answers, so provide as much of the answer as you can. Remember that all program segments are to be written in JAVA.
1.Write a method split() which takes an argument String s and prints each character of s with a comma(“,”) in between each character.
Example
split(“1234”) prints: “1,2,3,4”
split(“Hi, Mr. Programmer!”) prints “H,i,,, , M,r,., P,r,o,g,r,a,m,m,e,r,!”
split(“”) prints “”
static public void split(String s) {