简体   繁体   English

如何在J2ME中使用可比接口

[英]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. 嗨,朋友们,我将在j2me中使用Comparable接口,但是它在行Comparable接口上显示错误,需要编写哪个import语句或如何从j2me类中删除此错误。 please help me 请帮我

public class DFTpair implements  Comparable{

its showing red line on Comparable Thnks 在可比的Thnks上显示红线

If you want to develop on J2ME platform it's good idea to get documentation for API you need. 如果要在J2ME平台上进行开发,最好获取所需的API文档。 The most popular profiles and configurations (all versions of MIDP and CLDC) don't have this interface. 最流行的配置文件和配置(MIDP和CLDC的所有版本)没有此接口。 So if you want this interface you have to create it by yourself. 因此,如果要使用此接口,则必须自己创建。

And what do you need Comparable for? 而您需要Comparable?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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