Return to General Talk
Moderator: Baseball Moderators
by sox 06 » Thu Jan 28, 2010 12:05 pm
Tavish wrote:You are skipping the first even term in your loop. Your first evaluation is 3+2.
Ah there you go! I feel like an idiot sometimes with this Java stuff

But I'm getting better
Alright, another question. I've gone on Google to look for this, but I've been a bit confused about what I've read. How do you add a string of numbers together? I have the code written for 2 raised to the 1000th power, but now I need to add each digit in that answer and print out the sum. Do I need to use something like a toString in the BigInteger class? Here is what I have so far:

-
sox 06
- General Manager




- Posts: 4424
- (Past Year: 22)
- Joined: 22 Apr 2006
- Bases this season: 12
- Home Cafe: Baseball
Return to General Talk
Who is online
Users browsing this forum: Ajqpvzdw, apepLimanax, ciptplearee, Dennis, EmemiDype, enritrugMet, Peegetoupttit, preovobcabe, RoniLypeintit, SAMDAYMNSPOOM, traisuassuh, ViaxiaJarry, zasonge62 and 2 guests