This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Value of Expression

 
Roger Sanchez
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another sample exam question I need help with:
If variable s have declared by the statement String s = new String ("Hello World"); then what is the value of the expression s.substring(0,4)+s.charAt(5)+Character.toUpperCase(s.charAt(4))+s.substring(5)

Thanks,
Roger
 
Joe Pluta
Ranch Hand
Posts: 1376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Roger Sanchez:
Another sample exam question I need help with:

Okay, you need help. What part do you need help with? Show us your work so far on the question.
Joe
 
Paul Zill
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a particular part of the question you find confusing?
Have you tried running it yourself to reverse engineer the question?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic