| Author |
help regarding SCJP 5
|
Deepaks Deshpande
Ranch Hand
Joined: Dec 06, 2007
Posts: 95
|
|
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: 95
|
|
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); }
|
 |
 |
|
|
subject: help regarding SCJP 5
|
|
|