Question: write 3 sepparate programs to do the following (java) in light of the policy please answere this one 1. (3 pts) (New string split method)

write 3 sepparate programs to do the following (java) write 3 sepparate programs to do the following (java) in light of
in light of the policy please answere this one the policy please answere this one 1. (3 pts) (New string split

1. (3 pts) (New string split method) The split method in the String class returns an array of strings consisting of the substrings split by the delimiters. However, the delimiters are not returned. Implement the following new method that returns an array of strings consisting of the substrings split by the matching delimiters, including the matching delimiters. public static Stringsplit(Strings, String regex) a) split("ab#12#453","#") returns ab, #, 12, #, and 453 in an array of String. b) split("a?b?gf#e", "[?#]") returns a, ?, b, 7. gf, #, and e in an array of String. 2. (3pts) (Divisible by 5 or 6) Find the first 10 numbers greater than Long.MAX_VALUE that are divisible by 5 or 6 Bonus Question (3 pts): 3. (Square numbers) Find the first 10 square numbers that are greater than Long. MAX VALUE. A square number is a number in the form of n2. For example, 4, 9, and 16 are square numbers. Find an efficient approach to run your program fast. 1.(3 pts) (New string split method) The split method in the String class returns an array of strings consisting of the substrings split by the delimiters. However, the delimiters are not returned. Implement the following new method that returns an array of strings consisting of the substrings split by the matching delimiters, including the matching delimiters. public static Stringl split(String s, String regex) a) split("ab#12#453","#") returns ab, #, 12, #, and 453 in an array of String. b) split("a?b?gf#e", "[?#]") returns a, ?, b,?. gf, #, and e in an array of String

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!