• Post Reply Bookmark Topic Watch Topic
  • New Topic

displaying empty boolean method  RSS feed

 
kay jayz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everybody,
hmmm and the question is... (scary drums or the jaws theme music)
a JNI class defines a method from a dll (JNI part is from an experienced coder) that brings boolean state. it's called e.g. sth()
how can i display the boolean state to the console or just figure it out if it's true or false. the method has no parameters.
i have tried to make an object in my class e.g. pp.sth() but then system.out.println(...) well what now?


thank you in advance
kay

ps. i learn java but i guess i'm just not that far
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Have you tried the simple ? The body doesn't matter at all in this case, only the return value. That's going to be true or false, and that's what you're going to print out.
 
kay jayz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i did but eclipse wants to change the pp.sth() object in main to static
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!