简体   繁体   中英

How to use Comparable interface in j2me

Hey hi friends I am going to use Comparable interface in j2me but it showing error on line Comparable interface, which import statement need to be write or how to remove this error from j2me class. please help me

public class DFTpair implements  Comparable{

its showing red line on Comparable Thnks

If you want to develop on J2ME platform it's good idea to get documentation for API you need. The most popular profiles and configurations (all versions of MIDP and CLDC) don't have this interface. So if you want this interface you have to create it by yourself.

And what do you need Comparable for?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM