Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

I need help on Integer work!

Thread view: 
xxpinoybloodxx@gmail.com - 08 Mar 2007 01:05 GMT
Can anyone help me? This is what I need to do.

Write a program that allows the user to enter any number of integers.
The program should keep track of the largest value, the smallest
value, the number of the values entered, the total of all of the
values.  At the end of the input sequence the program should print the
largest and smallest values entered, the number of entries, the total
of the entries, and the average of the entries.  The screen should
include the project title and identifiers for each of the output
values.

I keep getting errors like:

  Proj3Numb2.java:15: illegal start of expression
                 input.charAt(0)<='9'))
                                                ^
  Proj3Numb2.java:26: illegal start of expression
        input.charAt(0)<='9'))
                                    ^
  Proj3Numb2.java:35: ';' expected
              }
                                 ^
  3 errors

   ----jGRASP wedge2: exit code for process is 1.
   ----jGRASP: operation complete.
Brandon McCombs - 08 Mar 2007 02:13 GMT
> Can anyone help me? This is what I need to do.
>
[quoted text clipped - 22 lines]
>     ----jGRASP wedge2: exit code for process is 1.
>     ----jGRASP: operation complete.

Maybe you should post your homework for us to compare with the error?
Given the error message in front of you I'd check how many parentheses
you have and make you sure have semicolons in the proper place. Have you
done that yet?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.