JAVA
The method longestStreak is intended to determine the longest substring of consecutive identical characters in the parameter str and print the result.
For example, the call longestStreak("CCAAAAATTT!") should print the result "A 5" because the longest substring of consecutive identical characters is "AAAAA".
Complete the method below. Your implementation should conform to the example above.
public static void longestStreak(String str)