Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Java Multiply with diferrent value
adil diab
Greenhorn
Posts: 2
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello expert
Java
I want to implement the following simple algorithm with java. I have an input which is to be multiplied by one and two.
Input: 123456 Multiplication: (1*1)+(2*2)+(1*3)+(2*4)+(1*5)+(2*6)=result
for example public String multiply(String input){ for(???){ ??? } return result; }
thanks in Advance
Campbell Ritchie
Marshal
Posts: 79153
377
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
… and what do you think
you should
do?
You might do well to start by telling us exactly what the algorithm is.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
help with programing
Some Basic jUnit questions!
How can I fix these NullPointerExceptions?
Sun Academic Initiative offer of a FREE SCJA Beta Certification Exam
math question - (divided by 2?)
More...