0

I want to implement cloneable interface but I am unable to. I am using J2me, it gives me error create interface Cloneable in your package. As far as I know J2me allows to implement Cloneable interface as it is a part of jdk1 1.0. Kindly help me

  • why do you want Cloneable? how do you expect to use it? Also, it's not welcome here to use answers to expand your question. Instead, edit your post to add more or in this case, you could also ask the question in comments to [Ray's answer](http://stackoverflow.com/questions/7238517/cloneable-interface-in-j2me/7238552#7238552) – gnat Sep 02 '11 at 16:26
  • @gnat I want to use cloneable because I want that when a user clicks duplicate then a copy of a particular class object should be created... – Safia Patel Sep 09 '11 at 17:07

1 Answers1

2

I don't see Cloneable here or here. Which JavaME API are you using?

Ray Toal
  • 86,166
  • 18
  • 182
  • 232
  • as almost a wild guess JavaME CDC 1.1.2 JSR 218 has [Cloneable](http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/Cloneable.html) - though question doesn't give any indication of whether it's about this or other JSR – gnat Sep 02 '11 at 16:43
  • Ok thanx!! I was looking at some other API.. Well do you know any alternative which I can use instead of cloneable. –  Sep 02 '11 at 15:35