Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by rejefi

  1. rejefi

    String array: expand it out of its range?

    Not true, as far as I know. Both Vector and ArrayList grow in spurts (e.g. initialize at size 10, grow to size 20, 30...) to save on constant redimensioning, which is pretty expensive.
  2. rejefi

    TimeZone insanity

    OK, google to the rescue. Here's the code. Ugggly. TimeZone t1 = TimeZone.getTimeZone("PST"); TimeZone t2 = TimeZone.getTimeZone("GMT"); Calendar c1 = Calendar.getInstance(t1); Calendar c2 = Calendar.getInstance(t2); long diff = (c1.getTimeInMillis() +...
  3. rejefi

    TimeZone insanity

    Hello, I'm attempting to find the difference between two dates, which (may) be in different timezones. One set of timezones will always be GMT; the others will vary. I simulate the problem in the following code: TimeZone t1 = TimeZone.getTimeZone("PDT"); TimeZone t2 =...

Part and Inventory Search

Back
Top