Re: Need help with Recursion Program today!!!!
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Fri, 17 Oct 2008 13:24:51 +0100
On Thu, 16 Oct 2008 16:22:10 -0700 (PDT), mich5973@xxxxxxxxxxx wrote:
I have been given assignment to create a program named count.Do you know how to create a program file with a particular name? If
so then do it, else ask your teacher.
Can you create a blank program, something like:
public class CountProgram {
public static void main(String[] args) {
// TODO - write some code here
}
}
This program is to count from 1 to the number being given which is supposedStart by writing a simpler program that counts to a fixed value, say
to be the variable N.
from 1 to 10. When you have that working you can change it to count
from 1 to N.
Another thing, the program can have only one parameter.Do you know how to pass in a parameter from the command line into the
args array? Do you know how to pass in a parameter from the keyboard?
In not then you need to talk to your teacher to clarify what s/he
means.
Does anyone have an idea how to write this program. IMany of us do, but you need to show us a bit more of what you can do
really need help!!!!!!
first.
rossum
.
- References:
- Need help with Recursion Program today!!!!
- From: mich5973
- Need help with Recursion Program today!!!!
- Prev by Date: Re: Why we should (not?) have closures after all
- Next by Date: Launching a JAVAW application
- Previous by thread: Re: Need help with Recursion Program today!!!!
- Next by thread: i still dont understand
- Index(es):
Relevant Pages
|