tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Twiggs, Glenn" <>
Subject RE: [OT] Feedback on Java?
Date Thu, 03 Jan 2002 17:07:26 GMT
This doesn't answer your question but may solve your problem anyway:

As an alternative to adding a method, you could use an existing method to
accomplish the same functionality:

  // Get remaining string in tokenizer by using no delimiters.
  String remainingString = tokenizer.nextToken("");


-----Original Message-----
From: Deacon Marcus []
Sent: Saturday, December 29, 2001 8:44 AM
Subject: [OT] Feedback on Java?

If someone have some suggestions concerning general improvements on Java
standard classes (java.lang.*, java.util.* for example) what's the "best"
way to contact "right people" to include (or not...) it in next version?
Anyone here did something like that successfully?

Example: I needed a class like StringTokenizer which allows to get the
remaining part of the processed String, i.e. forger delimeters and return
from current position to String's end. I ended up butchering
StringTokenizer's source and adding getRemaining() to subclass otherwise
identical (since everything was private I had to duplicate every line, which
technically is (c) infringment afair) - no big deal, took less than an hour
including testing, but it's pretty strange noone thought about including
something so basic from v. 1.0 to 1.4.

     deacon Marcus

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message