Comparable Interface – Code Reading

Material Category: Learning Activity
Course Categories: CS1/CS2/Data Structures |
FOSS Categories: Coding & Style |
Tags: code reading | cs2 | Java | Open MRS | OpenMRS |

Overview:

Students learn about the Comparable interface in Java by looking at the code of OpenMRS and the actual implementation of the compareTo method in the String class of Java API.

Link: http://foss2serve.org/index.php/Comparable_Interface_-_Code_Reading-Activity

Source: foss2serve.org


Return to Teaching Materials

Leave a Reply