Any Java Experts? More Help! - Fantasy Baseball Cafe 2013 Fantasy Baseball Cafe


Return to General Talk

Any Java Experts? More Help!

Moderator: Baseball Moderators

Re: Any Java Experts? More Help!

Postby Tavish » Thu Jan 28, 2010 12:28 am

You are skipping the first even term in your loop. Your first evaluation is 3+2.
Image

Bury me a Royal.
Tavish
Mod in Retirement
Mod in Retirement

User avatar
CafeholicFantasy ExpertCafe WriterCafe RankerMock(ing) DrafterEagle EyeCafe SpotterWeb Supporter
Posts: 11029
(Past Year: 109)
Joined: 3 May 2004
Bases this season: 1,135
Home Cafe: Baseball

Re: Any Java Experts? More Help!

Postby 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 :-D

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:

Image
sox 06
General Manager
General Manager

User avatar
CafeholicEagle Eye
Posts: 4424
(Past Year: 22)
Joined: 22 Apr 2006
Bases this season: 12
Home Cafe: Baseball

Previous

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

Forums Articles & Tips Sleepers Rankings Leagues


Today's Games
Friday, May. 24
(All times are EST, weather icons show forecast for game time)

Philadelphia at Washington
(7:05 pm)
Baltimore at Toronto
(7:07 pm)
Minnesota at Detroit
(7:08 pm)
Cleveland at Boston
(7:10 pm)
Chi Cubs at Cincinnati
(7:10 pm)
Atlanta at NY Mets
(7:10 pm)
NY Yankees at Tampa Bay
(7:10 pm)
indoors
Pittsburgh at Milwaukee
(8:10 pm)
LA Angels at Kansas City
(8:10 pm)
Oakland at Houston
(8:10 pm)
Miami at Chi White Sox
(8:10 pm)
San Diego at Arizona
(9:40 pm)
St. Louis at LA Dodgers
(10:10 pm)
Texas at Seattle
(10:10 pm)
Colorado at San Francisco
(10:15 pm)

  • Fantasy Baseball
  • Article Submissions
  • Privacy Statement
  • Site Survey 
  • Contact