Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I am brand new to the Java world and am trying to learn as much as possible, however, I'm not learning in my mother tongue, therefore it is a bit more difficult.
I need to write a program which will allow the user to input a string of numbers (unlimited number) and then the program has to determine which is the largest number, which is the smallest number, and then figure out an average of all of the numbers.
So I know that I need to figure out a way to write a program to determine the largest/smallest numbers.
I also have to write part of the program to add all of the numbers input, then divide by the number of numbers input...therefore resulting in an average.
My problem is that I have no idea where to begin and it's rather difficult to start a program, not knowing how to begin. If anyone has time to help me figure this out, I'd appreciate it very much.
Thanks to anyone who can help me.

first,do u know the how to use java language?no study it.
second, go to download a sdk, commonly, j2sdk.
third, install the sdk, and put forward a right configuration.
fourth, write your java program, make usr the main calss must match the source file name.
fifth, compile the source file,using javac.exe.
sixth, run the program using java.exe.any step you don't know it clearly, you can send email to me.Also, you can go to java.sun.com to get some help(for fun!:))

O.K. after uve downloaded the jdk, installed and everything, u need 2 determine how 2 enter the numbers 1st. For a beginner, i wud suggest using the command line arguements. Then determine the number of arguements passed, oh and use casting 2 convert the arguements to numbers cos they gona be strings. Then i suggest u create a for loop with 2 variables inside it, use one variable 2 store the total value of all the numbers and use the oda variable 2 store the largest number. email me if u have any oda questions

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |