I need help writing this method: public static intfindSecondLargest(java.lang.String text) Returns the second largestvalue in a list of numbers, where the list is given as a string oftext containing integer values separated by arbitrary whitespace.Duplicates are allowed, so the largest and second largest numbersmay be the same; for example, given the string “17 137 42 137”, themethod returns 137. The behavior is undefined if the providedstring contains any non-numeric values or contains fewer than twonumbers. Parameters: text – string of text containing at least twonumbers separated by whitespace Returns: second largest value inthe string
Expert Answer
An answer will
PayPal Gateway not configured
PayPal Gateway not configured