We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hi this is the code i submitted and it passed all test cases, but i am confused as to why this line worked (A.compareTo(B) > 1). When i used the line A.compareTo(B) == 1 test case two kept on failing until i made this change by mistake i meant to write 0 (zero) instead of 1 (one).
Java Strings Introduction
You are viewing a single comment's thread. Return to all comments →
Hi this is the code i submitted and it passed all test cases, but i am confused as to why this line worked (A.compareTo(B) > 1). When i used the line A.compareTo(B) == 1 test case two kept on failing until i made this change by mistake i meant to write 0 (zero) instead of 1 (one).
import java.io.; import java.util.;
public class Solution {
}