This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Value of Expression Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Value of Expression" Watch "Value of Expression" New topic
Author

Value of Expression

Roger Sanchez
Greenhorn

Joined: Jun 23, 2003
Posts: 16
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

Joined: Jun 23, 2003
Posts: 1376
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

Joined: Jun 12, 2003
Posts: 28
Is there a particular part of the question you find confusing?
Have you tried running it yourself to reverse engineer the question?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Value of Expression
 
Similar Threads
Splitting Between String and Numbers
Need a method for recognizing a pallindrome
trim function in Javascript
substring Vs charAt
String method query