Originally posted by Campbell Ritchie:
Write in the assignment that you interpret "until something is not a number" as meaning when you push "enter" after "1 2 3 4"
Originally posted by Campbell Ritchie:
Is using the command line arguments quite the same as "reading from standard input?" Please ask. You will lose marks if you do the wrong thing.
Originally posted by Campbell Ritchie:
...But if you do that all in the main method, you have that array as a local variable in the main method, and you will have to pass it elsewhere to be of use elsewhere.
Originally posted by marc weber:
...Is the intent really to input all the numbers as arguments to main? Or is the program supposed to be more interactive? For example, ask the user for a number, then process it, then ask for another number, then process it... Until the user enters something other than a number?
Originally posted by Henry Wong:
Unfortunately, I think you need to learn classes and object first. With Scheme, functions are first class entities. You can assigned them to variables. You can pass them other functions. etc.
In Java, this is not true. Functions (actually, call methods) are part of classes, or instances of classes.
Henry