Choose ONE of the options belowhttp://www.mediafire.com/view/1ygqt1h3c68df1c/project-2%20(1).pdfhttp://www.mediafire.com/view/ou1e14mp4f5hmn1/project-1.pdffocus on Java and one more question isWrite a Java method remove() that takes two arguments: a
Choose ONE of the options belowhttp://www.mediafire.com/view/1ygqt1h3c68df1c/project-2%20(1).pdfhttp://www.mediafire.com/view/ou1e14mp4f5hmn1/project-1.pdffocus on Java and one more question isWrite a Java method remove() that takes two arguments: a String and a single character. This method should return a new String that contains all the characters from the input String without any occurrences of the specified character. For example remove(this is some text s) should return thi i ome text. You may assume that all input values are in lowercase.Use a loop to build up the result String character by character. Do NOTuse the String method replace()!