Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Emergency !!!!!!!!!!!!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Emergency !!!!!!!!!!!!!!!!" Watch "Emergency !!!!!!!!!!!!!!!!" New topic
Author

Emergency !!!!!!!!!!!!!!!!

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
Hi reader,
I am using currently jdk1.2. Last night I installed jdk1.3 on my machine. But see the results. StringTokenizer's nextToken(String delimiter) method excludes delimiters , but same method when used in jdk1.3 it includes delimiters. This resulted catastrophic failure of my criteriaFind method when I used it in jdk1.3. If I use jdk1.2 then it work's fine. Now, do tell me shall I adhere to jdk1.2 or transfer my code to jdk1.3 ?. And try to code again my criteria compatible with jdk1.3 ?. In jdk1.2 I used only single instantiation of StringTokenizer class. If I use jdk1.3 then I had to instantiate many times.
Comply soon,
Thank you,
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

Actually according to others, the new 1.3 StringTokenizer can take multiple delimiters, so you would still only need one.
While the Instructions does not specifically say that you have to use 1.3 and since you have used 1.2 and you can still get 1.2 from the Sun website. You can get away with keeping it at 1.2.
However, i would say form a learning standpoint that using 1.3 will increase your learning. However, I also understnad that working on this project for a period of time you get to the point when you can finish it and be done.
It is completely your call. I hope you go to 1.3, especially since 1.4 is now out.
We will all be here to help you too no matter what you decide.
Good Luck
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
Hi mark,
I had made that I would go with jdk1.3. Since, I already had all the source code. Now do I have to compile with jdk1.3 or simply I change the the path to jdk1.3 and run my programs.
Thank you,
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

You should recompile in 1.3.
This will also make sure that you didn't use any deprecated methods that were deprecated in 1.3 but not in 1.2.
Good Luck
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Emergency !!!!!!!!!!!!!!!!