Forums Register Login

displaying empty boolean method

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
yes i did but eclipse wants to change the pp.sth() object in main to static
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 903 times.
Similar Threads
Threads (wait & notify)
getClass on array
Overriding methods of interface possible ?
boolean "is" method
date
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:59:17.