https://www.hackerrank.com/challenges/java-string-compare/problem?isFullScreen=true Java Substring Comparisons | HackerRank Lexicographically compare substrings of length 'k'. www.hackerrank.com import java.util.Scanner; public class Solution { public static String getSmallestAndLargest(String s, int k) { //String smallest = ""; //String largest = ""; String smallest = s.substring(0,k); String l..