Patrick Williams

Ranch Hand
+ Follow
since Apr 03, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Patrick Williams

Hi everyone, I am getting an exception on the following code and not sure why. Even in debug, there is nothing that indicates that the start position is out of bounds (start is at 128 while length is at 159 when the exception is thrown). The exception will follow the code.

public class TestStringBuffer {

public static void main(String[] args) {
String emptyString = new String(new byte[159]);
int[] sizes = new int[] {64, 64, 4, 1, 8, 10, 8};
String[] fields = new String[] {"test1", "test2", "ABC", "X", "ABCDEF", "123456", "qwerty" };
int start = 0;
StringBuilder newRec = new StringBuilder(emptyString);
for (int i = 0; i < fields.length; i++) {
String field = fields[i];
int end = start + sizes[i];
newRec.replace(start, end, field);
start = end;
}
}

}

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: start > length()
at java.lang.AbstractStringBuilder.replace(Unknown Source)
at java.lang.StringBuilder.replace(Unknown Source)
at mycode.TestStringBuffer.main(TestStringBuffer.java:17)

Thanks in advance.
[ October 09, 2008: Message edited by: Patrick Williams ]
13 years ago
Or it might be what we lost points on.

Sorry, I shouldn't try and scare you like that.
Hi Gopesh, My result was posted 8 days after I submitted my assignment. I'm not sure if you submit your assignment at the same pace I do, but that is where I found my actual grade. Because of an error, it took about 2 months for the certmanager site to get updated and I had to open an incident to get it cleared. Hope this helps.
The Cade book is good and the Head First OO is as well. Another book I've seen mentioned around here and I own is the UML by Martin Fowler and that is good as well. I think you have the right attitude when you say that you will be learning how to design. The first step is to put a first cut on paper and take a few more iterative passes over it once you've critiqued your own design. Don't feel pressured that your first design is not good, but use the first pass to get your thought process started. In my opinion, getting started and overcoming the fear of having a bad design is the hardest part and that is just a self imposed mental hurdle.

Hope this helps.
I would not think of it in terms of paragraphs. if I did, it would be either 2 paragraphs or one long one depending on the question. The tip I would give is to burn your component diagram into your head and draw it on your dry erase sheet that Prometric gives you right when you get it. Remember what you called your key components and capture them. That way, you have a visual aid when taking the test instead of making a mental mistake about thinking through your solution.

Originally posted by Joelle Ghazal:
congrats Patrick Williams,

i have a small question, if you can answer it?
did you show any of EJB classes in your class diagram?

Thank You,



I showed both my session and entity beans in my class diagram and designated it through the use of the stereotype.
Nice! You beat me by a point!
After submitting an e-mail "new incident" last Friday, they have finally fixed my certification progress in the cert DB as of yesterday! I am officially an SCEA!
Also, I used StarUML to generate my UML artifacts and found it to be quite handy.
That's still a pretty good score. Congrats!
Sorry for the delay, but I was in the UK all week.

Paul - I used 1.4. I had started on my current track (SE and EE) without trying to keep up with what was on the horizon. I figured that sufficient study materials and other training material would be handy when I attempted the upgrade exams.

Mellon - The only thing I can tell you is that the essay exam is a blanket exam that could be used for anyone, but your answers will reflect YOUR design in part II. As long as you did part II and take a good look through it before you sit for part III, you'll have no problem answering the questions.

Thanks for the congrats and good luck everyone!
I understand that, but my certification progress has still not been updated in the cert database and it's been a month since my part II grade was posted on the /sun_assignment site.
I received my part II grade on 11/14 and my certification history has still not been updated to reflect that I have finished all parts of my SCEA. Does anyone know how long this usually takes?

Originally posted by Kelvin Lim:

Don't work too quickly on your SCJD and SCMAD certifications... you might find that life becomes considerably less interesting once you have no more Sun Java certifications to work towards!



That's what upgrades are for! lol

P.S. I do not plan on taking SCMAD. I have no use for it.
13 years ago