Please, show me How to return to a calling void method within or without using the RETURN (in java).
Thanks
Larbi
0
Newbie Poster
Recommended Answers
Jump to PostI guess you need to return from a method whose return type is declared as void. Just put the return keyword without specifying anything after it.
public void check(){ // code for the method return; }
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.