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 Postshould i try putting in some System.out.println(""); codes in the methods to see where it is not working from?
Yes, absolutely yes. That's always a good thing to do right from the start.
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.