Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compling Error

 
Stephen Murphy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently submitted a programming assignment to a professor in my college java course, but ran into some problems. The program compiled and ran fine on both my computer and the computer lab computer, but there were some errors found when my professor tryed to compile it. The errors were:



Is there any reason that this would occur? Different versions of java maybe? Both me and my professor are using JGrasp under windows. I would love it if womeone could help me figure out the problem.
Thanks,
Murphy
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At a guess you were compiling under 1.5 which will automatically convert the int to an Integer and your professor was compiling under 1.4 or earlier.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic