Two Laptop Bag*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes help regarding SCJP 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "help regarding SCJP 5" Watch "help regarding SCJP 5" New topic
Author

help regarding SCJP 5

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 111

hi all,
I am new to this forum.I am preparing for the SCJP 5 exam..I am taking the exam on 24th of this month.Can anybody help me with the exercise9-2 in threads chapter.How do you increment a letter in a stringbuffer.And also suggest some mock exams.I will be completing my first reading by tomorrow and then revise.


Regards,
Deepak

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

For help with question 2 from chapter 9 of K&B, search this forum for "XXYY" and you will find plenty of discussions on this question.

For mock exams, see our SCJP FAQ: What are some mock exams available?

(Sorry, I don't know what you mean about incrementing a letter in a StringBuffer.)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 111

i have found out how a string buffer can be incremented...will this work??
StringBuffer sb = new StringBuffer("A");
for(int i=0;i<10;i++)
{
System.out.println(sb);
}
char a = sb.charAt(0);
++a;
sb.setCharAt(0,a);
for(int i=0;i<10;i++)
{
System.out.println(sb);
}
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: help regarding SCJP 5