This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RR #13  RSS feed

Steven YaegerII
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am improving slowly, though when I code some of these roundups, I feel like I'm regressing...
As Rules Roundup answer #13 says that byte c = (byte) a + b; is a valid line, and because it seems to me like it should work, I cannot understand why it doesn't work in the code below. What could I be doing that is most likely so obvious that it would bite me? (none of my variations work either, though it works in System.out.println( a + b ).

How come the last line doesn't make var c equal a (byte) 5?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!