I'm in a beginning Java class and I have to write this program and I'm completely stuck. I have to use JBuilder 5 to do it. If anyone could give me a few pointers, I'd really appreciate it.
The program has to read integers from the command line, print the integers in reverse order, and compute the total of all the integers. I know that I need to find the length of the array and somehow print out from the length backwards to print out the integers on the command line and then convert the strings of that array to ints and add those, but I have no idea how to do it. I pretty much know what it is that I have to do, I just don't know how to make it all work. I'm really stuck.
Please help!!! Thanks!!!
The program has to read integers from the command line, print the integers in reverse order, and compute the total of all the integers. I know that I need to find the length of the array and somehow print out from the length backwards to print out the integers on the command line and then convert the strings of that array to ints and add those, but I have no idea how to do it. I pretty much know what it is that I have to do, I just don't know how to make it all work. I'm really stuck.
Please help!!! Thanks!!!