hi ...I am tryin to do this methods homework...I have to have a system.println for a void method..I know u cannot have a return for void method..but can u have a system.println in the main method for the helper void method?
mahes_
0
Newbie Poster
Recommended Answers
Jump to PostI don't know anyone called "u"...
But I suggest you think about where you can use System.println, as your understanding of how to use it seems to be lacking.
Jump to Posti know that..i was asking for smth like this...
import java.util.Scanner
Public class..{public static void main(...)
{variable;
Scanner sc = new Scanner(System.in);Switch(choice)
{case1 :
System.out.print("ans" + mulTest());
}
public static void mulTest()
{
}i don't think …
All 6 Replies
jwenting
1,889
duckman
Team Colleague
hooknc
1
Posting Whiz in Training
mahes_
0
Newbie Poster
Easter Bunny
0
Junior Poster in Training
jwenting
1,889
duckman
Team Colleague
mahes_
0
Newbie Poster
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.