This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Int array? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Int array?" Watch "Int array?" New topic
Author

Int array?

Imran Bhutta
Greenhorn

Joined: Oct 31, 2004
Posts: 9
i have a for loop and now i dont know how i would add the int values in an array?

i need it to add the vaules together and then see if its a % of 10 and if its not i have to make it which is basiclayy value of n % 10 and add the remainder, which will give me my last values. and then with these values i have to decode a string..

Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Do you mean that an input of "424242" is to give an int value of 18?


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Int array?
 
It's not a secret anymore!