We know the most important part of coding is writing test code.

Here is some sample code to help get started.

compareTo


The "compareTo" is a valuable method supported by many coding languages.

It works like this:

abOperationResult
100200a.compareTo(b)integer less than zero
200100a.compareTo(b)integer greater than zero
100100a.compareTo(b)zero


Test Code Samples