[1] Install Java JDK
!apt-get install openjdk-11-jdk
[2] Create java code
%%bash
# Create the Java file
echo 'import java.util.*; import java.io.*; public class WordFrequency { public static void main(String[] args) throws IOException { String[] wor...