Java code for trial and testing.