Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

instanceOf in J2ME

 
Reggie McDougal
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I tell in J2me type of object ie. passing and object into a method
that I need to determine the type before evaluating
 
Ramender Mall
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the question is about instanceOf...
then you use it exactly as you use it in other java programs..

e.g


Hope it helps



- Ramy..
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But also, like J2SE, you really want to try to avoid using instanceof at all costs.

What is the reason why you need to use instanceof? Maybe we can help you find a better solution.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic