Re: Input/Output Sequence
this is also REGULAR java...
Re: Input/Output Sequence
The program is to print 3 lines?
Did you compile and execute the small program you posted here?
Start with that so you know how to edit, compile and execute a program.
When it does execute:
Did it print out anything?
What statements in the program did the printing?
You could copy those statements and change them to print out what you want to print.
Re: Input/Output Sequence
Are you supposed to write a program to prompt the user to input the data?
Re: Input/Output Sequence
Well, I don't really understand how to write it, because the example and the assignment are so different...
Re: Input/Output Sequence
Did you try typing in the sample program, compiling it and executing it?
Quote:
the example and the assignment are so different...
It looks like the assignment only uses a small part of the example program.