News

The following is an implementation in Java for an Android application, but the logic would apply to any language.