Sorry for my poor english as i'm not a native english speaker and writer, but i have written a code which calculates big numbers, adding subtracting and multiplying.
when multiplying, adding and subracting numbers, it works, but when i try adding 0 to 0 or subtracting 0 to 0 or multiplying 0 to 0 it does not seem to work. also for when multiplying a number with 0 or vice versa, it also does not work :(( i have no idea why can somehelp me please?
pheonixkid 0 Newbie Poster
Recommended Answers
Jump to PostCan you post some code? Have you tried debugging your code by adding some System.out.println messages to see what is happenig as the code runs?
Jump to PostIf I am to call it, what argument should I pass?
Jump to PostI have been looking at your code and i don't understand the byte[] calculation(String OrginInput) method. If it is used to "extract" the numbers from the input there are better ways to do it. Also why do you call the negate method inside:
if (count % 2 …
All 9 Replies
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
pheonixkid 0 Newbie Poster
pheonixkid 0 Newbie Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
pheonixkid 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
pheonixkid 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.