Why does this line appear in the program multiple times?:
System.out.println("Enter a number or enter 'e' to quit:");
I see it's partly because you've set up the program to do each part...
Type: Posts; User: GregBrannon
Why does this line appear in the program multiple times?:
System.out.println("Enter a number or enter 'e' to quit:");
I see it's partly because you've set up the program to do each part...
Perhaps your code formatting is confusing you, but what you describe and what your code says don't match.
This is what your code says:
get input
for other than "e"
turn input into double...
Are you getting errors? Please post those. Also, not sure what you mean about cooperation of main and Scanner. The main() calls a method and steps aside. (Give your methods better names that...